-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
100 lines (93 loc) · 1.9 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.3'
services:
mina:
image: ${MINA}
container_name: mina
ports:
- '6060:6060'
- '8302:8302'
- '127.0.0.1:3085:3085'
restart: always
env_file:
- ./.env
volumes:
- '$HOME/keys:/root/keys:ro'
- '$HOME/.mina-config:/root/.mina-config'
command: >
daemon
--metrics-port 6060
--archive-address archive:3086
--insecure-rest-server
networks:
- archive
- mina
archive:
image: ${ARCHIVE}
container_name: archive
depends_on:
- postgres
pid: host
restart: always
env_file:
- ./.env
command: mina-archive run --postgres-uri ${PGURI} --server-port 3086 --log-level debug
networks:
- archive
- mina
postgres:
image: ${POSTGRES}
container_name: postgres
ports:
- '5432:5432'
env_file:
- ./.env
environment:
POSTGRES_USER: ${PGUSER}
POSTGRES_PASSWORD: ${PGPASSWORD}
POSTGRES_DB: ${PGDATABASE}
PGDATA: ${PGDATA}
volumes:
- './data/${PG_DUMP}:/data/${PG_DUMP}'
- './scripts/init_docker_compose.sh:/docker-entrypoint-initdb.d/init.sh'
- './db:/var/lib/postgresql/data'
command: postgres -N 1000
networks:
- archive
jaeger:
image: ${JAEGER}
container_name: jaeger
env_file:
- ./.env
restart: always
ports:
- '5775:5775/udp'
- '6831:6831/udp'
- '6832:6832/udp'
- '5778:5778'
- '9411:9411'
- '${JAEGER_FRONTEND}:16686'
- '${JAEGER_LOG_PORT}:14268'
networks:
- archive
app:
build: .
container_name: app
depends_on:
- postgres
env_file:
- ./.env
restart: always
ports:
- '8080:8080'
command: ${APP_COMMAND}
volumes:
- /app/node_modules
networks:
- archive
volumes:
db:
networks:
archive:
driver: bridge
mina:
driver: bridge