-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 1.03 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
services:
postgres:
image: timescale/timescaledb-ha:pg16
restart: unless-stopped
shm_size: 2gb
volumes:
- db_data:/home/postgres/pgdata/data
env_file:
- .env
ports:
- "5432:5432"
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres" ]
timeout: 45s
interval: 10s
retries: 10
logging:
driver: "json-file"
options:
max-file: "5" # number of files or file count
max-size: "100m" # file size
redis:
image: redis:7.2-alpine
restart: unless-stopped
ports:
- "6379:6379"
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
volumes:
- redis:/data
command: redis-server --requirepass ${REDIS_PASSWORD}
web:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
command: bash -c "./scripts/run-server.sh"
depends_on:
- "postgres"
ports:
- "8080:8080"
volumes:
- .:/app
env_file:
- .env
volumes:
db_data:
redis: