-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
38 lines (36 loc) · 794 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
38 lines (36 loc) · 794 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
version: "3.8"
services:
db:
image: postgres:14
ports:
- 5432:5432
environment:
- POSTGRES_DB=twfactor
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=sup3rs3cr27
volumes:
- dbdata:/var/lib/postgresql/data
healthcheck:
test: [CMD-SHELL, pg_isready]
interval: 10s
timeout: 5s
retries: 5
rabbitmq:
image: rabbitmq:management-alpine
ports:
- 5672:5672
- 15672:15672
volumes:
- ./rabbitmq/data/:/var/lib/rabbitmq/
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=sup3rs3cr27
app:
build: .
ports:
- 9091:9091
command: ./srv server --config /app/config.yaml
volumes:
- ./dev.yaml:/app/config.yaml
volumes:
dbdata: {}