-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
200 lines (189 loc) · 4.23 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
services:
postgres:
image: pgduckdb/pgduckdb:16-main
volumes:
- postgresql_bin:/usr/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_NAME_PROD}
POSTGRES_USER: ${DB_USER_PROD}
POSTGRES_PASSWORD: ${DB_PASS_PROD}
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
networks:
- mynetwork
backend-1:
hostname: backend-1
build:
context: ./app/backend
dockerfile: Dockerfile
volumes:
- ./app/backend:/main
environment:
DB_HOST_PROD: ${DB_HOST_PROD}
DB_PORT_PROD: ${DB_PORT_PROD}
DB_NAME_PROD: ${DB_NAME_PROD}
DB_USER_PROD: ${DB_USER_PROD}
DB_PASS_PROD: ${DB_PASS_PROD}
env_file:
- .env
ports:
- "8001:8000"
depends_on:
- postgres
networks:
- mynetwork
backend-2:
hostname: backend-2
build:
context: ./app/backend
dockerfile: Dockerfile
volumes:
- ./app/backend:/main
environment:
DB_HOST_PROD: ${DB_HOST_PROD}
DB_PORT_PROD: ${DB_PORT_PROD}
DB_NAME_PROD: ${DB_NAME_PROD}
DB_USER_PROD: ${DB_USER_PROD}
DB_PASS_PROD: ${DB_PASS_PROD}
env_file:
- .env
ports:
- "8002:8000"
depends_on:
- postgres
networks:
- mynetwork
backend-3:
hostname: backend-3
build:
context: ./app/backend
dockerfile: Dockerfile
volumes:
- ./app/backend:/main
environment:
DB_HOST_PROD: ${DB_HOST_PROD}
DB_PORT_PROD: ${DB_PORT_PROD}
DB_NAME_PROD: ${DB_NAME_PROD}
DB_USER_PROD: ${DB_USER_PROD}
DB_PASS_PROD: ${DB_PASS_PROD}
env_file:
- .env
ports:
- "8003:8000"
depends_on:
- postgres
networks:
- mynetwork
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- backend-1
- backend-2
- backend-3
networks:
- mynetwork
frontend:
build:
context: ./app/frontend
dockerfile: Dockerfile
volumes:
- ./app/frontend:/app
env_file:
- .env
ports:
- "8501:8501"
networks:
- mynetwork
pgadmin:
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
PGADMIN_LISTEN_PORT: 5050
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- postgresql_bin:/usr/lib/postgresql
- pgadmin_root_prefs:/root/.pgadmin
- pgadmin_working_dir:/var/lib/pgadmin
ports:
- 5050:5050
depends_on:
- postgres
networks:
- mynetwork
briefer:
image: briefercloud/briefer:latest
environment:
BRIEFER_DB_HOST: ${DB_HOST_PROD}
BRIEFER_DB_PORT: ${DB_PORT_PROD}
BRIEFER_DB_NAME: ${DB_NAME_PROD}
BRIEFER_DB_USER: ${DB_USER_PROD}
BRIEFER_DB_PASSWORD: ${DB_PASS_PROD}
ports:
- "3000:3000"
depends_on:
- postgres
networks:
- mynetwork
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=${DB_HOST_PROD}
- DB_POSTGRESDB_PORT=${DB_PORT_PROD}
- DB_POSTGRESDB_DATABASE=${DB_NAME_PROD}
- DB_POSTGRESDB_USER=${DB_USER_PROD}
- DB_POSTGRESDB_PASSWORD=${DB_PASS_PROD}
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
ports:
- 5678:5678
links:
- postgres
volumes:
- n8n_storage:/home/node/.n8n
depends_on:
postgres:
condition: service_healthy
networks:
- mynetwork
minio:
image: minio/minio
container_name: minio
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
networks:
- mynetwork
networks:
mynetwork:
driver: bridge
volumes:
pgadmin_root_prefs:
driver: local
pgadmin_working_dir:
driver: local
postgresql_data:
driver: local
postgresql_bin:
driver: local
minio_data:
driver: local
n8n_storage:
driver: local