-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (54 loc) · 1.19 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
services:
web:
image: he0119/smart-home:latest
container_name: smart-home
restart: always
volumes:
- ./logs:/app/logs
- ./static:/app/static
- ./geoip:/app/geoip
env_file:
- ./.env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
celery:
image: he0119/smart-home:latest
command: celery -A home worker --beat -l info
container_name: celery
restart: always
volumes:
- ./logs:/app/logs
- ./geoip:/app/geoip
env_file:
- ./.env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
postgres:
image: he0119/postgres
build: ./docker/postgres
container_name: postgres
restart: always
volumes:
- ./docker/postgres/pgdata:/var/lib/postgresql/data
env_file:
- ./.env
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7
container_name: redis
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5