Repository navigation
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
60 lines (57 loc) · 1.81 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
60 lines (57 loc) · 1.81 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
51
52
53
54
55
56
57
58
59
60
services:
postgres:
image: postgres:16-alpine
container_name: interlock_db
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER:-interlock}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME:-interlock}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-interlock}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- interlock-network
server-go:
image: ghcr.io/${GHCR_USERNAME}/interlock-server-go:${GO_IMAGE_TAG:-latest}
container_name: interlock_server_go
pull_policy: always
environment:
NODE_ENV: production
PORT: 8080
DATABASE_URL: ${DATABASE_URL:-postgresql://${DB_USER:-interlock}:${DB_PASSWORD}@postgres:5432/${DB_NAME:-interlock}}
CLIENT_URL: ${CLIENT_URL}
JWT_SECRET: ${JWT_SECRET}
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
PLAID_CLIENT_ID: ${PLAID_CLIENT_ID}
PLAID_SECRET: ${PLAID_SECRET}
PLAID_ENV: ${PLAID_ENV:-production}
PLAID_PRODUCTS: ${PLAID_PRODUCTS:-auth,transactions,identity}
PLAID_COUNTRY_CODES: ${PLAID_COUNTRY_CODES:-US}
DWOLLA_KEY: ${DWOLLA_KEY}
DWOLLA_SECRET: ${DWOLLA_SECRET}
DWOLLA_ENV: ${DWOLLA_ENV:-production}
DWOLLA_BASE_URL: ${DWOLLA_BASE_URL:-https://api.dwolla.com}
DWOLLA_WEBHOOK_SECRET: ${DWOLLA_WEBHOOK_SECRET}
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
SENDGRID_SENDER_EMAIL: ${SENDGRID_SENDER_EMAIL}
SENTRY_DSN: ${SENTRY_DSN}
ENABLE_LOGS: ${ENABLE_LOGS:-false}
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
networks:
- interlock-network
restart: unless-stopped
networks:
interlock-network:
driver: bridge
volumes:
postgres_data:
name: interlock_db_data