-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.53 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
67
68
69
70
71
72
73
74
75
76
77
services:
db:
container_name: tvp-db
image: "postgis/postgis:13-3.3-alpine"
environment:
POSTGRES_USER: tvp
POSTGRES_PASSWORD: tvp
POSTGRES_DB: tvp
healthcheck:
test: ["CMD", "pg_isready", "-U", "tvp"]
interval: 5s
timeout: 5s
retries: 10
ports:
- "127.0.0.1:5555:5432"
volumes:
- tvp-postgres:/var/lib/postgresql/data
redis:
container_name: tvp-redis
image: "redis:7-alpine"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
ports:
- "127.0.0.1:6379:6379"
backend:
container_name: tvp-core
image: tvp-core
build:
context: .
dockerfile: docker/Dockerfile
args:
DEPS: main,admin,celery,test,lint
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
env_file:
- .env
environment:
DJANGO_SETTINGS_ENVIRONMENT: Docker
ports:
- "127.0.0.1:8000:8000"
volumes:
- tvp-media:/media
entrypoint: /tvp/docker/entrypoint_dev.sh
celery:
container_name: tvp-celery
image: tvp-celery
depends_on:
backend:
condition: service_started
redis:
condition: service_healthy
build:
context: .
dockerfile: docker/Dockerfile
env_file:
- .env
environment:
DJANGO_SETTINGS_ENVIRONMENT: Docker
entrypoint: /tvp/docker/worker.sh
volumes:
tvp-postgres:
tvp-media:
networks:
default:
name: helsinki