forked from rayonlabs/G.O.D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (42 loc) · 978 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
42
43
44
45
46
47
48
services:
postgresql:
image: postgres:latest
volumes:
- ./postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}" ]
interval: 5s
timeout: 5s
retries: 5
networks:
- postgres_network
ports:
- "127.0.0.1:5432:5432"
env_file:
- .vali.env
dbmate:
image: amacneil/dbmate
volumes:
- ./validator/db:/db
command: --wait up
depends_on:
postgresql:
condition: service_healthy
env_file:
- .vali.env
networks:
- postgres_network
environment:
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgresql:5432/${POSTGRES_DB}?sslmode=disable
redis:
image: redis/redis-stack:latest
ports:
- "127.0.0.1:6379:6379"
deploy:
restart_policy:
condition: on-failure
volumes:
postgres_data:
networks:
postgres_network:
redis_network: