-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (42 loc) · 930 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (42 loc) · 930 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
42
43
version: '3'
services:
broker:
image: signetframework/signet-broker:latest
container_name: signet-broker
deploy:
restart_policy:
condition: on-failure
restart: unless-stopped
depends_on:
- db
environment:
- PORT=3001
- NODE_ENV=production
- RDS_USERNAME=postgres
- RDS_HOSTNAME=db
- RDS_DB_NAME=postgres
- RDS_PASSWORD=browni3s
ports:
- "3001:3001"
networks:
- app-network
working_dir: /home/node/app
command: ./wait-for.sh db:5432 -t 500 -- npm start
db:
image: signetframework/signet-db:latest
healthcheck:
test: psql postgres --command "select 1" -U postgres
restart: always
deploy:
restart_policy:
condition: on-failure
container_name: db
volumes:
- dbdata:/data/db
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
dbdata: