-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
80 lines (74 loc) · 1.52 KB
/
docker-compose.dev.yaml
File metadata and controls
80 lines (74 loc) · 1.52 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3'
services:
nginx:
container_name: "hypertest-dev-nginx"
build:
context: ./docker/nginx/
args:
NGINX_DIR: conf.d.dev
ports:
- "443:443"
- "80:80"
volumes:
- static-dev:/var/static
- ./media:/var/media
- ./log/nginx:/var/log/nginx
- ./ssl:/etc/ssl
restart: on-failure
depends_on:
- back
- front
links:
- back
- front
db:
container_name: "hypertest-dev-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-dev-back"
build:
context: .
args:
START_SCRIPT: start.dev.sh
volumes:
- ./src:/code/src
- static-dev:/code/static
- ./media:/code/media
expose:
- "8000"
ports:
- "8000:8000"
depends_on:
- db
front:
container_name: "hypertest-dev-front"
build:
context: ./front
volumes:
- ./front:/app
- front-node-modules-dev:/app/node_modules
expose:
- "3000"
ports:
- "3000:3000"
swagger:
container_name: "hypertest-swagger"
image: swaggerapi/swagger-ui
ports:
- "8081:8080"
volumes:
- "./docs/swagger.yaml:/index.yaml"
environment:
SWAGGER_JSON: /index.yaml
volumes:
front-node-modules-dev:
static-dev: