-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
77 lines (71 loc) · 1.4 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
services:
frontend:
image: ghcr.io/julienc91/caviardeul-frontend:latest
pull_policy: always
env_file:
- frontend/.env
depends_on:
- backend
networks:
- nginx_network
expose:
- 3000
restart: always
backend:
image: ghcr.io/julienc91/caviardeul-backend:latest
pull_policy: always
env_file:
- backend/.env
volumes:
- staticdata:/app/static
depends_on:
- postgres
- redis
networks:
- db_network
- nginx_network
expose:
- 5000
restart: always
nginx:
image: nginx:stable-alpine
env_file:
- nginx/.env
volumes:
- ./nginx/caviardeul.conf.template:/etc/nginx/templates/caviardeul.conf.template:ro
- staticdata:/app/static:ro
ports:
- "127.0.0.1:3000:3000"
networks:
- nginx_network
depends_on:
- backend
- frontend
restart: always
postgres:
image: postgres:16-alpine
env_file:
- postgres/.env
networks:
- db_network
expose:
- 5432
volumes:
- "dbdata:/var/lib/postgresql/data"
restart: always
redis:
image: redis:7-alpine
env_file:
- redis/.env
networks:
- db_network
expose:
- 6379
command: /bin/sh -c "redis-server --requirepass $$REDIS_PASSWORD"
restart: always
networks:
db_network:
nginx_network:
volumes:
dbdata:
staticdata: