-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
47 lines (45 loc) · 1.33 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
version: '3'
services:
app:
container_name: web3_employment_production_app
build:
context: .
dockerfile: Dockerfile
# NOTE: We must expose these args to Dockerfile because they are used in next.config.js
args:
- TRON_NETWORK=${TRON_NETWORK}
- TOKEN_ADDRESS=${TOKEN_ADDRESS}
- TOKEN_DECIMALS=${TOKEN_DECIMALS}
- TOKEN_SYMBOL=${TOKEN_SYMBOL}
- BATCH_CONTRACT_ADDRESS=${BATCH_CONTRACT_ADDRESS}
- WALLET_CONNECT_PROJECT_ID=${WALLET_CONNECT_PROJECT_ID}
- NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=${NEXT_PUBLIC_GOOGLE_ANALYTICS_ID}
- NEXT_PUBLIC_LINKEDIN_TRACKING_PARTNER_ID=${NEXT_PUBLIC_LINKEDIN_TRACKING_PARTNER_ID}
env_file: .env
depends_on:
db:
condition: service_healthy
stdin_open: true
tty: true
ports:
- 127.0.0.1:3001:3000
healthcheck:
test:
[
'CMD-SHELL',
'curl http://localhost:3000/api/status | grep true > /dev/null',
]
interval: 5s
timeout: 5s
db:
image: postgres:12-alpine
container_name: web3_employment_production_db
env_file: .env
volumes:
- .data:/var/lib/postgresql/data
ports:
- 127.0.0.1:5432:5432
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $POSTGRES_USER -d $POSTGRES_DB']
interval: 5s
timeout: 5s