-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 796 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 796 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
services:
application:
build:
context: .
dockerfile: ./Dockerfile
restart: always
volumes:
- .:/code
- /code/.venv
depends_on:
postgres:
condition: service_healthy
environment:
- POSTGRES_DSN=postgresql+asyncpg://outbox:outbox@postgres:5432/outbox
stdin_open: true
tty: true
postgres:
image: postgres:17
restart: always
command: >-
postgres
-c shared_preload_libraries=pg_stat_statements
-c pg_stat_statements.track=all
environment:
- POSTGRES_USER=outbox
- POSTGRES_PASSWORD=outbox
- POSTGRES_DB=outbox
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U outbox -d outbox"]
interval: 1s
timeout: 3s
retries: 30