-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (58 loc) · 1.03 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
db:
build:
context: postgres
dockerfile: Dockerfile
restart: on-failure:3
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready",
"-d",
"$${POSTGRES_DB}",
"-U",
"$${POSTGRES_USER}",
]
interval: 5s
timeout: 20s
retries: 5
start_period: 5s
ports:
- "5432:5432"
networks:
- mynetwork
app:
build: .
restart: on-failure:3
ports:
- "8080:8080"
- "8545:8545" # Anvil
depends_on:
- postgraphile
networks:
- mynetwork
env_file: .env
# k6:
# image: loadimpact/k6
# depends_on:
# - app
# volumes:
# - ./test.js:/test/test.js
# command: run /test/test.js
# deploy:
# replicas: 0 # Don't auto start service on docker up command
# networks:
# - mynetwork
#
adminer:
image: adminer
ports:
- "5101:8080"
networks:
- mynetwork
volumes:
pgdata:
networks:
mynetwork:
driver: bridge