-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
84 lines (76 loc) · 1.71 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
78
79
80
81
82
83
84
version: "3.8"
services:
lite-hmrc-postgres:
restart: unless-stopped
container_name: "lite-hmrc-postgres"
environment:
- LITEHMRC_DB_USER=postgres
- LITEHMRC_DB_PASSWORD=password
- LITEHMRC_DB_SCHEMA=postgres
- POSTGRES_PASSWORD=password
build: './database'
expose:
- 5432
ports:
- 5432:5432
lite-hmrc-intg:
container_name: "lite-hmrc-intg"
env_file:
- .env
build: .
platform: linux/amd64
volumes:
- .:/app
ports:
- 8000:8000
depends_on:
- lite-hmrc-postgres
- celery
- celery-beat
expose:
- 8000
command: pipenv run ./manage.py runserver 0.0.0.0:8000
healthcheck:
test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ]
interval: 10s
timeout: 5s
retries: 2
start_period: 5s
mailhog:
ports:
- 8025:8025 # HTTP
- 587:1025 # SMTP
image: mailhog/mailhog
celery:
build: .
volumes:
- .:/app
env_file: .env
links:
- lite-hmrc-postgres
- redis
command: pipenv run watchmedo auto-restart -d . -R -p '*.py' -- celery -A conf worker -l info
healthcheck:
test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ]
interval: 10s
timeout: 5s
retries: 2
start_period: 5s
celery-beat:
build: .
volumes:
- .:/app
env_file: .env
links:
- lite-hmrc-postgres
- redis
command: pipenv run watchmedo auto-restart -d . -R -p '*.py' -- celery -A conf beat
redis:
image: "redis:5-alpine"
container_name: hmrc-redis
expose:
- 6379
ports:
- 6379:6379
volumes:
maildata: