-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.churros.yaml
58 lines (57 loc) · 1.29 KB
/
docker-compose.churros.yaml
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
services:
churros_postgres:
image: docker.io/library/postgres:16-alpine
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
volumes:
- churros_database:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: dev
POSTGRES_USER: postgres
POSTGRES_DB: postgres
env_file:
- .env
churros_redis:
image: redis/redis-stack:7.4.0-v0
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
start_period: 20s
interval: 30s
retries: 5
timeout: 3s
volumes:
- churros_redis:/data
ports:
- 6379:6379
churros_api:
image: harbor.k8s.inpt.fr/net7/churros/api:v4.0.1
ports:
- "4000:4000"
env_file:
- churros.env
volumes:
- churros_storage:/app/storage
depends_on:
- churros_postgres
- churros_redis
churros_app:
image: harbor.k8s.inpt.fr/net7/churros/app:v2.12.1
ports:
- "3000:3000"
env_file:
- churros.env
depends_on:
- churros_api
volumes:
churros_database:
driver: local
churros_redis:
driver: local
churros_storage:
driver: local