-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
67 lines (61 loc) · 1.27 KB
/
docker-compose.prod.yaml
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
57
58
59
60
61
62
63
64
65
66
67
version: '3'
services:
nginx:
container_name: "hypertest-prod-nginx"
build:
context: docker/nginx
args:
NGINX_DIR: conf.d
ports:
- "443:443"
- "80:80"
volumes:
- static:/var/static
- ./media:/var/media
- ./log/nginx:/var/log/nginx
- ./ssl:/etc/ssl
- ./front/build:/etc/nginx/html
restart: on-failure
depends_on:
- back
links:
- back
db:
container_name: "hypertest-prod-db"
image: postgres:12-alpine
environment:
- POSTGRES_DB=hypertest
- POSTGRES_USER=hypertest
- POSTGRES_PASSWORD=hypertest
- PGPASSWORD=hypertest
ports:
- "5432:5432"
volumes:
- ./var/pg_data:/var/lib/postgresql/data
back:
container_name: "hypertest-prod-back"
build:
context: .
args:
START_SCRIPT: start.sh
volumes:
- ./src:/code/src
- static:/code/static
- ./media:/code/media
expose:
- "8000"
ports:
- "8000:8000"
depends_on:
- db
swagger:
container_name: "hypertest-prod-swagger"
image: swaggerapi/swagger-ui
ports:
- "8081:8080"
volumes:
- "./docs/swagger.yaml:/index.yaml"
environment:
SWAGGER_JSON: /index.yaml
volumes:
static: