forked from safe-global/safe-client-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (67 loc) · 2.65 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
64
65
66
67
68
69
70
71
services:
redis:
image: redis/redis-stack:7.0.2-RC1
ports:
- ${REDIS_PORT-6379}:${REDIS_PORT-6379}
- 8001:8001
db:
image: postgres:14.8-alpine
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${POSTGRES_DB:-safe-client-gateway}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
ports:
- '${POSTGRES_PORT:-5432}:5432'
db-test:
image: postgres:14.8-alpine
environment:
POSTGRES_DB: ${POSTGRES_TEST_DB:-test-db}
POSTGRES_USER: ${POSTGRES_TEST_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_TEST_PASSWORD:-postgres}
ports:
- '${POSTGRES_TEST_PORT:-5433}:5432'
volumes:
- ./db_config/test/server.crt:/var/lib/postgresql/server.crt:ro
- ./db_config/test/server.key:/var/lib/postgresql/server.key:ro
- ./db_config/test/pg_hba.conf:/etc/pg_hba.conf
command: >
-c ssl=on
-c ssl_cert_file=/var/lib/postgresql/server.crt
-c ssl_key_file=/var/lib/postgresql/server.key
-c hba_file=/etc/pg_hba.conf
web:
build: .
tty: true
environment:
REDIS_HOST: redis
PRICES_PROVIDER_API_KEY: ${PRICES_PROVIDER_API_KEY-example_api_key}
APPLICATION_PORT: ${APPLICATION_PORT-3000}
AUTH_TOKEN: ${AUTH_TOKEN-example_auth_token}
ALERTS_PROVIDER_SIGNING_KEY: ${ALERTS_PROVIDER_SIGNING_KEY-example_signing_key}
ALERTS_PROVIDER_API_KEY: ${ALERTS_PROVIDER_API_KEY-example_api_key}
ALERTS_PROVIDER_ACCOUNT: ${ALERTS_PROVIDER_ACCOUNT-example_account}
ALERTS_PROVIDER_PROJECT: ${ALERTS_PROVIDER_PROJECT-example_project}
EMAIL_API_APPLICATION_CODE: ${EMAIL_API_APPLICATION_CODE-example_application_code}
EMAIL_API_FROM_EMAIL: ${[email protected]}
EMAIL_API_KEY: ${EMAIL_API_KEY-example_api_key}
EMAIL_TEMPLATE_UNKNOWN_RECOVERY_TX: ${EMAIL_TEMPLATE_UNKNOWN_RECOVERY_TX-example_template_unknown_recovery_tx}
EMAIL_TEMPLATE_RECOVERY_TX: ${EMAIL_TEMPLATE_RECOVERY_TX-example_template_recovery_tx}
EMAIL_TEMPLATE_VERIFICATION_CODE: ${EMAIL_TEMPLATE_VERIFICATION_CODE-example_template_verification_code}
RELAY_PROVIDER_API_KEY_GNOSIS_CHAIN: ${RELAY_PROVIDER_API_KEY_GNOSIS_CHAIN-example_api_key}
RELAY_PROVIDER_API_KEY_SEPOLIA: ${RELAY_PROVIDER_API_KEY_SEPOLIA-example_api_key}
depends_on:
- redis
- db
nginx:
image: nginx:1.25-alpine
ports:
- ${NGINX_HOST_PORT:-8080}:80
volumes:
- ./nginx/templates:/etc/nginx/templates
environment:
NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx/
APPLICATION_PORT: ${APPLICATION_PORT-3000}
depends_on:
- web