-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (41 loc) · 1.04 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
networks:
main:
name: python-fastapi-network
services:
python-fastapi-postgres:
container_name: python-fastapi-postgres
image: "postgres:18-alpine"
ports:
- "5432:5432"
environment:
- "POSTGRES_USER=myuser"
- "POSTGRES_PASSWORD=superpassword"
networks:
main:
aliases:
- python-fastapi-postgres
python-fastapi-rabbitmq:
container_name: python-fastapi-rabbitmq
image: "rabbitmq:3-management-alpine"
ports:
- "5672:5672"
- "15672:15672"
environment:
- "RABBITMQ_DEFAULT_USER=guest"
- "RABBITMQ_DEFAULT_PASS=guest"
networks:
main:
aliases:
- python-fastapi-rabbitmq
prism-mock-open-api:
container_name: prism-mock-open-api
image: "public.ecr.aws/logistics/stoplight/prism:3.2.7"
ports:
- "4010:4010"
volumes:
- ./sample-openapi-spec.json:/tmp/sample-openapi-spec.json
command: mock -h 0.0.0.0 /tmp/sample-openapi-spec.json
networks:
main:
aliases:
- prism-mock-open-api