forked from MotoAcidic/omnilayer-explorer-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
76 lines (73 loc) · 1.73 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
version: '3'
services:
omni_api:
build:
context: api
dockerfile: Dockerfile
depends_on:
- omni_postgres
# - omni_core
- omni_engine
- omni_redis
links:
- omni_postgres
# - omni_core
- omni_redis
ports:
- "4005:80"
labels:
com.datadoghq.ad.logs: '[{"source": "omni-docker", "service": "omni-api"}]'
omni_explorer:
build:
context: explorer
dockerfile: Dockerfile
depends_on:
- omni_api
links:
- omni_api
ports:
- "4006:3000"
labels:
com.datadoghq.ad.logs: '[{"source": "omni-docker", "service": "omni-explorer"}]'
omni_engine:
build:
context: engine
dockerfile: Dockerfile
depends_on:
- omni_postgres
# - omni_core
- omni_redis
links:
- omni_postgres
# - omni_core
- omni_redis
environment:
FLYWAY_PLACEHOLDERS_OMNIAPIPASSWORD: omniapipass
FLYWAY_PLACEHOLDERS_OMNIENGINEPASSWORD: omnienginepass
PGUSER: postgres
PGPASSWORD: postgresspass
PGHOST: omni_postgres
PGPORT: 5432
OMNIDB_DATABASE: omni
NETWORK: testnet
labels:
com.datadoghq.ad.logs: '[{"source": "omni-docker", "service": "omni-engine"}]'
omni_postgres:
image: postgres:10-alpine
restart: always
ports:
- "5436:5432"
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgresspass
POSTGRES_DB: omni
labels:
com.datadoghq.ad.logs: '[{"source": "omni-docker", "service": "omni-postgres"}]'
omni_redis:
image: redis:alpine
restart: always
labels:
com.datadoghq.ad.logs: '[{"source": "omni-docker", "service": "omni-redis"}]'
volumes:
pgdata: