-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (78 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
86 lines (78 loc) · 1.58 KB
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
80
81
82
83
84
85
86
version: "3.8"
services:
db:
image: postgres:16.1-alpine
container_name: "api-demo-db"
ports:
- "5432:5432"
environment:
- POSTGRES_DB=api_demo_db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
networks:
- api_demo_app
volumes:
- database_postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
django-drf:
build:
context: .
dockerfile: ./django_drf/Dockerfile
container_name: "api-demo-django-drf"
ports:
- "8000:8000"
depends_on:
- db
networks:
- api_demo_app
django-ninja:
build:
context: .
dockerfile: ./django_ninja/Dockerfile
container_name: "api-demo-django-ninja"
ports:
- "8001:8001"
depends_on:
- db
networks:
- api_demo_app
fastapi:
build:
context: .
dockerfile: ./fast_api/Dockerfile
container_name: "api-demo-fastapi"
ports:
- "8002:8002"
depends_on:
- db
networks:
- api_demo_app
go-sqlc-mux:
build:
context: .
dockerfile: ./go_sqlc_mux/Dockerfile
container_name: "api-demo-go-sqlc-mux"
ports:
- "8003:8003"
depends_on:
- db
networks:
- api_demo_app
locust:
build:
context: .
dockerfile: ./load_testing/Dockerfile
container_name: "api-demo-locust"
ports:
- "8089:8089"
networks:
- api_demo_app
volumes:
database_postgres:
networks:
api_demo_app:
driver: bridge