-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
56 lines (56 loc) · 1.2 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
56 lines (56 loc) · 1.2 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
52
53
54
55
56
version: "3.1"
services:
web:
container_name: web
tty: true
stdin_open: true
restart: always
build:
context: .
dockerfile: Dockerfile
entrypoint: bash deployment/production/entrypoint.sh
working_dir: /source
env_file:
- deployment/production/prod.env
environment:
- DJANGO_SETTINGS_MODULE=telecircuit.settings.prod
volumes:
- .:/source
ports:
- 8000:8000
depends_on:
- database
- frontend
database:
container_name: database
restart: always
image: postgres:10.1-alpine
env_file:
- deployment/production/prod.env
depends_on:
- frontend
webserver:
container_name: webserver
tty: true
build:
context: ./deployment/production/webserver
dockerfile: Dockerfile
ports:
- 80:80
- 443:443
volumes:
- ./static:/static
depends_on:
- web
- frontend
frontend:
container_name: frontend
tty: true
stdin_open: true
working_dir: /telecircuit-manager
build:
context: ./deployment/webpack
dockerfile: Dockerfile
volumes:
- ./telecircuit-manager:/telecircuit-manager
entrypoint: bash entrypoint.sh