-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.49 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
52
53
54
55
56
57
version: "3"
services:
robsondb:
container_name: robsonDatabase
image: postgres
environment:
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
ports:
- "${POSTGRES_PORT:-5450}:5432"
volumes:
- ./backends/database/:/docker-entrypoint-initdb.d
restart: always
cronjob:
container_name: cronjob
build: ./backends/cronjob
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DATABASE=${POSTGRES_DATABASE}
- POSTGRES_PORT=${POSTGRES_PORT}
restart: always
backend-monolith:
container_name: backendMonolith
image: backend-monolith
build: ./backends/monolith
environment:
- DJANGO_SETTINGS_MODULE=backend.settings
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_USER={$POSTGRES_USER}
- POSTGRES_PASSWORD={$POSTGRES_PASSWORD}
- POSTGRES_DATABASE=${POSTGRES_DATABASE}
- POSTGRES_PORT={$POSTGRES_PORT}
volumes:
- ./backends/monolith:/app-backend
restart: always
frontend-web:
container_name: frontendWeb
image: frontend-web
build: ./frontends/web
volumes:
- ./frontends/web:/app-frontend
ports:
- 3403:3403
depends_on:
- backend-monolith
restart: always
nginx_backend_server:
depends_on:
- backend-monolith
container_name: nginxMonolith
build: ./backends/nginx_monolith
ports:
- 8403:8403
restart: always
volumes:
pgdata: