-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
executable file
·168 lines (155 loc) · 3.57 KB
/
Copy pathcompose.yaml
File metadata and controls
executable file
·168 lines (155 loc) · 3.57 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
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
services:
nginx:
container_name: tablemind_nginx
image: nginx:latest
env_file: ./.env
restart: unless-stopped
secrets:
- https_public
- https_private
networks:
- tablemind_nginx
ports:
- "${PORT_AUTH}:${PORT_AUTH}"
- "${PORT_CORE}:${PORT_CORE}"
- "${PORT_FRONT}:${PORT_FRONT}"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
db:
container_name: tablemind_db
image: postgres:18-bookworm
env_file: ./.env
secrets:
- postgres_password
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
networks:
- tablemind_db_net
- pgadmin_net
volumes:
- postgresql:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 3s
retries: 5
persister:
container_name: tablemind_persister
build:
context: .
dockerfile: Persistence/Dockerfile
image: spanishsyntax/apps:tablemind-Persister
env_file: ./.env
secrets:
- jwt_private_key
- jwt_public_key
- postgres_password
- fernet_password
- users_file
networks:
- tablemind_db_net
volumes:
- uploads:/app/uploads # Add this
api_auth:
container_name: tablemind_api_auth
build:
context: .
dockerfile: Auth/Dockerfile
image: spanishsyntax/apps:tablemind-Auth
env_file: ./.env
secrets:
- jwt_private_key
- jwt_public_key
- postgres_password
- fernet_password
networks:
- tablemind_db_net
- tablemind_nginx
depends_on:
db:
condition: service_healthy
volumes:
- uploads:/app/uploads # Add this
api_core:
container_name: tablemind_api_core
build:
context: .
dockerfile: Core/Dockerfile
image: spanishsyntax/apps:tablemind-Core
env_file: ./.env
secrets:
- jwt_private_key
- jwt_public_key
- postgres_password
- fernet_password
networks:
- tablemind_db_net
- tablemind_nginx
volumes:
- uploads:/app/uploads # Add this
worker:
container_name: tablemind_worker
build:
context: .
dockerfile: ./Worker/Dockerfile
image: spanishsyntax/apps:tablemind-Worker
depends_on:
- redis
- api_core
env_file: ./.env
secrets:
- jwt_private_key
- jwt_public_key
- postgres_password
- fernet_password
networks:
- tablemind_db_net
volumes:
- uploads:/app/uploads # Add this
redis:
image: redis:latest
container_name: tablemind_redis
networks:
- tablemind_db_net
depends_on:
db:
condition: service_healthy
frontend:
container_name: tablemind_front
build:
context: .
dockerfile: ./Frontend/Dockerfile
image: spanishsyntax/apps:tablemind-Front
env_file: ./.env
networks:
- tablemind_nginx
networks:
tablemind_db_net:
driver: bridge
name: tablemind_db_network
tablemind_nginx:
driver: bridge
name: tablemind_nginx_network
pgadmin_net:
name: pgadmin_network
external: true
volumes:
postgresql:
name: stats_vol_pg
uploads:
name: tablemind_vol_uploads
secrets:
postgres_password:
environment: POSTGRES_PASSWORD
fernet_password:
environment: FERNET_PASSWORD
jwt_public_key:
file: ./Secrets/jwt_public.pem
jwt_private_key:
file: ./Secrets/jwt_private.pem
users_file:
file: ./Secrets/users.toml
https_public:
file: ./Secrets/cert.crt
https_private:
file: ./Secrets/cert.key