-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1017 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1017 Bytes
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
services:
db:
image: postgres:15
container_name: job_db
restart: unless-stopped
ports:
- "${POSTGRES_PORT}:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-user} -d ${POSTGRES_DB:-jobdb}"]
interval: 5s
retries: 5
start_period: 10s
timeout: 3s
api:
build: ./job_aggregator
container_name: job_api
restart: unless-stopped
env_file:
- .env.dev
- .env.hh.dev
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
volumes:
- ./job_aggregator/migrations:/app/migrations
- ./job_aggregator:/app
bot:
build: ./job-bot
container_name: telegram_bot
restart: unless-stopped
env_file: .env.dev
depends_on:
- api
volumes:
postgres_data: