-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 824 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 824 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
services:
processor:
image: email-tickets-processor:local
build:
context: .
target: development
env_file:
- .env
develop:
watch:
- action: sync
path: ./
target: /app/
- action: rebuild
path: poetry.lock
ports:
- 8000:8000
volumes:
- .:/app
- ./secret_files:/files
depends_on:
- database
database:
image: postgres:16.1-bookworm
restart: always
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
ports:
- "5430:5432"
volumes:
- postgresql_data:/var/lib/postgresql
healthcheck:
test: [ "CMD-SHELL", "sh -c 'pg_isready -U postgres -d postgres'" ]
interval: 10s
timeout: 3s
retries: 3
volumes:
postgresql_data: