-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 920 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
services:
farseer:
image: noctisatrae/farseer:latest
restart: always
ports:
- 2282
- 2283
dns:
- 1.1.1.1
- 1.0.0.1
volumes:
- ./config.toml:/usr/src/app/config.toml
- ./hub_identity:/usr/src/app/hub_identity
depends_on:
db:
condition: service_healthy
db:
image: postgres
restart: always
# set shared memory limit when using docker-compose
shm_size: 128mb
ports:
- 5432:5432
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_PASSWORD: example
adminer:
image: adminer
restart: always
ports:
- 8080:8080