-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
52 lines (48 loc) · 1008 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
49
50
51
52
version: '3.8'
services:
frontend:
build:
context: ./frontend
args:
NEXT_PUBLIC_APP_API_URI: http://${HOST_IP}:1323
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
networks:
- my_network
backend:
build:
context: ./server
ports:
- "1323:1323"
depends_on:
database:
condition: service_healthy
networks:
- my_network
healthcheck:
test: ["CMD", "curl", "-f", "http://backend:1323"]
interval: 30s
timeout: 10s
retries: 3
database:
build:
context: ./db-docker
ports:
- "5432:5432"
environment:
- POSTGRES_DB=multisig
- POSTGRES_USER=alice
- POSTGRES_PASSWORD=password
networks:
- my_network
healthcheck:
test: ["CMD", "pg_isready", "-U", "alice", "-d", "multisig", "-h", "localhost"]
interval: 30s
timeout: 10s
retries: 3
networks:
my_network:
driver: bridge