-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 892 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (37 loc) · 892 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
version: '3'
services:
locust:
image: docker.io/locustio/locust:2.44.1
volumes:
- ./locustfile.py:/locustfile.py
command: --host http://service:8000 -f /locustfile.py
depends_on:
- service
ports:
- '8089:8089'
service:
build: .
restart: always
command: uv run uvicorn --host 0.0.0.0 --log-config logging.conf transfer:app
environment:
DATABASE_URL: postgresql://user:pass@db:5432/db
DATABASE_MIN_POOL_SIZE: 5
DATABASE_MAX_POOL_SIZE: 10
depends_on:
- db
ports:
- '8000:8000'
db:
image: docker.io/library/postgres:18.4
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: db
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- pgdata:/var/lib/postgresql
ports:
- '5432:5432'
volumes:
pgdata: