-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (60 loc) · 1.65 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
version: '3.8'
services:
backend:
image: fluxt/backend:${TAG}
sysctls:
net.core.somaxconn: 1024
restart: always
depends_on:
- db
volumes:
- ./backend_run:/run
environment:
SECRET_KEY:
ADMIN_PASSWORD:
DB_HOST:
DB_PASSWORD:
SCRIPT_NAME: $BASE_URI/api
WSGI_MODULE: backend:create_app()
# 101: nginx gid
WSGI_SOCKET_GID: 101
TZ: Europe/Paris
db:
image: postgres:16-alpine
restart: always
volumes:
- ./db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: $DB_PASSWORD
TZ: Europe/Paris
frontend:
image: fluxt/frontend:${TAG}
restart: always
volumes:
- ./frontend_run:/run
environment:
BASE_URI:
# 101: nginx gid
SOCKET_GID: 101
TZ: Europe/Paris
proxy:
image: nginx
depends_on:
- backend
- frontend
restart: always
command: >
sh -c '
envsubst \$$BASE_URI < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf &&
rm -f /run/nginx.* &&
exec /docker-entrypoint.sh nginx -g "daemon off;"
'
volumes:
- ./nginx.conf.template:/etc/nginx/nginx.conf.template:ro
- ./proxy_run:/run
- ./backend_run:/backend_run
- ./frontend_run:/frontend_run
environment:
BASE_URI:
TZ: Europe/Paris
# vim: se sw=4 sts=4 et: