-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.21 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
version: '3.8'
services:
backend:
image: ghcr.io/wakttu/wakttu_backend:latest
ports:
- 1945:1945
env_file:
- backend.env
environment:
- PORT=1945
networks:
- nginx-bridge
- wakttu
depends_on:
postgres:
condition: service_healthy
restart: true
redis:
condition: service_started
restart: unless-stopped
postgres:
image: postgres
ports:
- 5432:5432
env_file:
- postgres.env
environment:
TZ: Asia/Seoul
PGDATA: /data/postgres
healthcheck:
test: ["CMD", "pg_isready", "-U", "wakttu"]
volumes:
- ./postgres/data:/data/postgres
networks:
- wakttu
restart: unless-stopped
redis:
image: redis:7.4-alpine
ports:
- 6379:6379
env_file:
- redis.env
command: /bin/sh -c "redis-server --requirepass $$PASSWORD --include /usr/local/etc/redis/redis.conf"
labels:
- 'name=redis'
- 'mode=standalone'
volumes:
- ./redis/data:/data
- ./redis/conf/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- wakttu
restart: unless-stopped
networks:
wakttu:
driver: bridge
nginx-bridge:
external: true