forked from EthGlobalBangkok/polyswap-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
50 lines (47 loc) · 1.08 KB
/
docker-compose.dev.yml
File metadata and controls
50 lines (47 loc) · 1.08 KB
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
services:
postgres:
image: postgres:15
container_name: polyswap-postgres
environment:
POSTGRES_DB: polyswap
POSTGRES_USER: polyswap_user
POSTGRES_PASSWORD: polyswap_password
POSTGRES_INITDB_ARGS: "--encoding=UTF-8"
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./database/init:/docker-entrypoint-initdb.d
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U polyswap_user -d polyswap"]
interval: 10s
timeout: 5s
retries: 5
app:
container_name: polyswap-app
build:
context: .
dockerfile: Dockerfile.app
ports:
- "3000:3000"
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
listener:
container_name: polyswap-listener
build:
context: .
dockerfile: Dockerfile.listener
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
volumes:
postgres_data:
driver: local