-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.run.yml
79 lines (76 loc) · 1.78 KB
/
docker-compose.run.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
services:
app:
profiles: [run]
image: "${IMAGE_NAME}:${IMAGE_TAG}"
build:
dockerfile: Dockerfile
args:
- ENVIRONMENT
- APP_NAME
- APP_VERSION
- COMMIT_SHA
ports:
- "127.0.0.1:8100:8000"
environment:
- DB_HOST=db
- DB_PORT=5432
- AWS_ACCESS_KEY_ID=xxx
- AWS_SECRET_ACCESS_KEY=xxx
- AWS_ENDPOINT_URL=http://queue:9324
- AWS_DEFAULT_REGION=us-east-1
- AWS_MAX_ATTEMPTS=3
- AWS_RETRY_MODE=standard
- APP_DEBUG=true
- PYTHONASYNCIODEBUG=1
- LOG_LEVEL=DEBUG
- LOG_SERIALIZE=false
- LOG_BACKTRACE=true
- LOG_DIAGNOSE=true
- LOG_STANDARD_LOGGER__root=INFO
- LOG_STANDARD_LOGGER__sqlalchemy.engine=INFO
- LOG_STANDARD_LOGGER__sqlalchemy.pool=INFO
develop:
watch:
- action: sync+restart
path: ./app
target: /code/app
- action: rebuild
path: uv.lock
depends_on:
db:
condition: service_healthy
queue:
condition: service_started
db:
profiles: [run]
image: postgres:16-alpine
environment:
- POSTGRES_USER=accounting_service
- POSTGRES_PASSWORD=accounting_service
ports:
- "127.0.0.1:5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U accounting_service"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
start_interval: 1s
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
command:
- postgres
# - -clog_statement=all
- -clog_min_duration_statement=100ms
- -clog_lock_waits=on
queue:
profiles: [run]
image: softwaremill/elasticmq-native:latest
ports:
- "127.0.0.1:9324:9324"
- "127.0.0.1:9325:9325"
volumes:
- ./elasticmq.conf:/opt/elasticmq.conf
volumes:
pgdata: {}