-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
109 lines (103 loc) · 2.21 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
services:
database_service_pg:
image: postgres:15.1
container_name: postgres_kanban_pg
env_file: ".development.env"
networks:
deployment_network:
aliases:
- database-pg
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "${DB_PORT}:5432"
profiles: ['api-db', 'api-dev']
backend_service_dev:
container_name: api-development
restart: unless-stopped
depends_on:
- database_service_pg
build:
target: dev
context: .
args:
- PORT=${PORT}
ports:
- "${PORT}:${PORT}"
- "9229:9229"
profiles: ['api-dev']
env_file:
- .development.env
volumes:
- ./src:/app/src
networks:
deployment_network:
aliases:
- api-development
backend_service_prod:
container_name: "${API_NAME_1}"
build:
context: .
target: production
args:
- PORT=${PORT}
depends_on:
- database_service_pg
ports:
- "${PORT1}:${PORT}"
profiles: ['api-prod']
env_file:
- .production.env
environment:
API_NAME: "${API_NAME_1}"
networks:
deployment_network:
aliases:
- "${API_NAME_1}"
backend_service_prod_2:
container_name: "${API_NAME_2}"
build:
context: .
target: production
args:
- PORT=${PORT}
depends_on:
- database_service_pg
ports:
- "${PORT2}:${PORT}"
profiles: ['api-prod']
env_file:
- .production.env
environment:
API_NAME: "${API_NAME_2}"
networks:
deployment_network:
aliases:
- "${API_NAME_2}"
backend_service_prod_3:
container_name: "${API_NAME_3}"
build:
context: .
target: production
args:
- PORT=${PORT}
depends_on:
- database_service_pg
ports:
- "${PORT3}:${PORT}"
profiles: ['api-prod']
env_file:
- .production.env
environment:
API_NAME: "${API_NAME_3}"
networks:
deployment_network:
aliases:
- "${API_NAME_3}"
nginx_proxy:
image: jrcs/letsencrypt-nginx-proxy-companion
ports:
- "80:80"
- "443:443"
networks:
deployment_network: