-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
51 lines (46 loc) · 1.11 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3.8"
volumes:
app_data:
name: gecom_app_data
# static_files:
# name: gecom_static_files
media_files:
name: gecom_media_files
services:
django:
build:
context: .
dockerfile: Dockerfile
image: seco:development
container_name: gecom_django
command: /app/docker/start.sh server
depends_on:
- postgres
env_file:
- .env
ports:
- 8000:8000
volumes:
- .:/app
# - static_files:/app/static
- media_files:/app/media
postgres:
image: postgres:13.3-alpine
hostname: gecom-postgres
volumes:
- app_data:/var/lib/postgresql/data
env_file:
- .env
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
image: nginx:development
ports:
- 80:80
- 443:443
depends_on:
- django
volumes:
# - static_files:/app/static:ro
- media_files:/app/media:ro