-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.08 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
version: '3.9'
services:
postgresdb:
env_file: .env.production
image: postgres
# build:
# context: .
# dockerfile: database.Dockerfile
ports:
- "5432:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
restart: always
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres" ]
timeout: 45s
interval: 10s
retries: 10
networks:
- scrapie-network
redis:
image: redis
ports:
- "6379:6379"
restart: always
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
timeout: 45s
interval: 10s
retries: 10
networks:
- scrapie-network
web:
build:
context: .
dockerfile: production.Dockerfile
restart: always
env_file: .env.production
ports:
- "8000:8000"
depends_on:
postgresdb:
condition: service_healthy
redis:
condition: service_healthy
networks:
- scrapie-network
links:
- postgresdb
- redis
networks:
scrapie-network:
driver: bridge