-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 900 Bytes
/
docker-compose.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
services:
rabbitmq:
container_name: rabbitmq
image: rabbitmq:4.0.5-management
expose:
- "5672"
- "15672"
ports:
- "5672:5672"
- "15672:15672"
deploy:
resources:
limits:
memory: 350m
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 10s
timeout: 5s
retries: 10
networks:
- rabbitmq_go_net
postgresqldb:
image: postgres:17.2-alpine
hostname: postgresqldb
extra_hosts: [ 'host.docker.internal:host-gateway' ]
environment:
- POSTGRES_USER=appuser
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=appdb
healthcheck:
test: ["CMD-SHELL", "pg_isready -U appuser -d appdb"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
networks:
- rabbitmq_go_net
networks:
rabbitmq_go_net:
driver: bridge