-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
105 lines (99 loc) · 2.67 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Find business regulations docker-compose configuration.
volumes:
postgres_data:
driver: local
redis_data:
driver: local
services:
db:
image: postgres:16.2
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=fbr
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 3
networks:
- proxynet
web:
build:
context: .
cache_from:
- fbr/application:latest
image: fbr/application:latest
env_file:
- local.env
ports:
- "8081:8080"
# depends_on:
# db:
# condition: service_healthy
volumes:
- .:/app
networks:
- proxynet
redis:
image: redis
# Expose port so we can query it for debugging
ports:
- "6379:6379"
celery-worker:
build:
context: .
cache_from:
- fbr/application:latest
image: fbr/application:latest
command: celery --app fbr.celery_app worker --task-events --loglevel INFO
entrypoint: ''
volumes:
- .:/app
healthcheck:
test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ]
interval: 10s
timeout: 5s
retries: 2
start_period: 5s
depends_on:
- redis
- db
environment:
REDIS_ENDPOINT: redis://redis:6379
DEBUG: true
DJANGO_SETTINGS_MODULE: fbr.settings
RDS_POSTGRES_CREDENTIALS: '{"password":"postgres","dbname":"fbr","engine":"postgres","port":5432,"dbInstanceIdentifier":"xxx","host":"db","username":"postgres"}'
DATABASE_URL: postgres://postgres:postgres@host.docker.internal:5432/fbr # pragma: allowlist secret
celery-beats:
build:
context: .
cache_from:
- fbr/application:latest
image: fbr/application:latest
command: celery --app fbr.celery_app beat --loglevel INFO
entrypoint: ''
volumes:
- .:/app
healthcheck:
test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ]
interval: 10s
timeout: 5s
retries: 2
start_period: 5s
depends_on:
- redis
- db
environment:
REDIS_ENDPOINT: redis://redis:6379
DEBUG: true
DJANGO_SETTINGS_MODULE: fbr.settings
RDS_POSTGRES_CREDENTIALS: '{"password":"postgres","dbname":"fbr","engine":"postgres","port":5432,"dbInstanceIdentifier":"xxx","host":"db","username":"postgres"}'
DATABASE_URL: postgres://postgres:postgres@host.docker.internal:5432/fbr # pragma: allowlist secret
networks:
proxynet:
name: fbr_network