-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.24 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
services:
redis:
command: 'redis-server --requirepass redis'
container_name: bloombot-redis
image: 'redis:alpine'
networks:
- bloombot
ports:
- '6379:6379'
restart: always
logging:
options:
max-size: '20m'
max-file: '3'
postgres:
container_name: postgres
image: postgres:17-alpine
networks:
- bloombot
ports:
- '5432:5432'
restart: always
volumes:
- 'postgres-data:/var/lib/postgresql/data'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=bloombot
logging:
options:
max-size: '20m'
max-file: '3'
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
bloombot:
container_name: bloombot
build: .
env_file:
- .env
- .env.development.local
cap_add:
- SYS_TIME
environment:
- NTP_SERVERS=pool.ntp.org
- TZ="Europe/London"
image: favware/bloombot:latest
logging:
options:
max-size: '1g'
max-file: '3'
networks:
- bloombot
restart: always
tty: true
volumes:
postgres-data:
networks:
bloombot: