-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (57 loc) · 1.31 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
version: '3'
services:
db:
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
networks:
- app_network
web:
build: .
# command: sh remote-up.sh # python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "localhost:8000/healthcheck/"]
interval: 60s
timeout: 10s
retries: 3
start_period: 10s
depends_on:
- db
- full_service
environment:
DATABASE_URL: postgres://${DB_USER}:${DB_PASS}@db:5432/${DB_NAME}
FULL_SERVICE_URL: http://full_service:9090/wallet/v2
env_file:
- .env
networks:
- app_network
full_service:
image: mobilecoin/full-service:v2.9.2-mainnet
expose:
- "9090"
ports:
- "9090:9090"
volumes:
- full_service_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "localhost:9090/wallet/v2"] # replace with appropriate health check command
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- app_network
volumes:
postgres_data:
full_service_data:
networks:
app_network:
driver: bridge