-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.71 KB
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.7"
services:
dev:
container_name: dev
build:
context: .
dockerfile: Dockerfile
env_file: .env.development
command: sh -c "python manage.py runserver 0:9000"
volumes:
- .:/townonewheel/
ports:
- "9000:9000"
nginx:
image: nginx:latest
container_name: nginx_production
ports:
- "80:80"
volumes:
- .:/townonewheel
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./static:/static
depends_on:
- prod
# - prod2
prod:
container_name: django-production
build:
context: .
dockerfile: Dockerfile
env_file: ./config/.env
command: sh -c "python manage.py runserver 0:8000"
volumes:
- .:/townonewheel/
ports:
- "8000:8000"
# prod2:
# container_name: django-production2
# build:
# context: .
# dockerfile: Dockerfile
# env_file: ./config/.env
# command: sh -c "python manage.py runserver 0:9000"
# volumes:
# - .:/townonewheel/
# ports:
# - "9000:9000"