forked from gobicycle/bicycle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
141 lines (132 loc) · 3.62 KB
/
docker-compose-test.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: '3'
services:
payment-postgres-a:
image: postgres:14
container_name: payment_processor_db_a
volumes:
- ./deploy/db/01_init.up.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5433:5432"
restart: always
env_file:
- .env
environment:
POSTGRES_DB: "payment_processor"
POSTGRES_USER: "pp_user"
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- p-network
payment-postgres-b:
image: postgres:14
container_name: payment_processor_db_b
volumes:
- ./deploy/db/01_init.up.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5434:5432"
restart: always
env_file:
- .env
environment:
POSTGRES_DB: "payment_processor"
POSTGRES_USER: "pp_user"
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- p-network
payment-processor-a:
image: payment-processor
container_name: payment_processor_a
ports:
- "8082:8081"
restart: unless-stopped
env_file:
- .env
environment:
DB_URI: "postgres://pp_user:${POSTGRES_PASSWORD}@payment_processor_db_a:5432/payment_processor"
API_TOKEN: ${API_TOKEN}
COLD_WALLET: ${COLD_WALLET}
JETTONS: ${JETTONS}
LITESERVER: ${LITESERVER}
LITESERVER_KEY: ${LITESERVER_KEY}
SEED: ${SEED}
TON_CUTOFFS: ${TON_CUTOFFS}
IS_TESTNET: ${IS_TESTNET}
networks:
- p-network
payment-processor-b:
image: payment-processor
container_name: payment_processor_b
ports:
- "8083:8081"
restart: unless-stopped
env_file:
- .env
environment:
DB_URI: "postgres://pp_user:${POSTGRES_PASSWORD}@payment_processor_db_b:5432/payment_processor"
API_TOKEN: ${API_TOKEN}
COLD_WALLET: ${COLD_WALLET}
JETTONS: ${JETTONS}
LITESERVER: ${LITESERVER}
LITESERVER_KEY: ${LITESERVER_KEY}
SEED: ${SEED}
TON_CUTOFFS: ${TON_CUTOFFS}
IS_TESTNET: ${IS_TESTNET}
networks:
- p-network
payment-grafana:
image: grafana/grafana:latest
container_name: payment_grafana
restart: always
ports:
- '3001:3000'
volumes:
- ./deploy/grafana/test/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./deploy/grafana/test/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./deploy/grafana/test/dashboards:/etc/dashboards
env_file:
- .env
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- p-network
payment-prometheus:
image: prom/prometheus:latest
container_name: payment_prometheus
restart: always
ports:
- '9090:9090'
volumes:
- ./deploy/prometheus:/etc/prometheus
user: "$UID:$GID"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.external-url=http://localhost:9090'
networks:
- p-network
payment-test:
image: payment-test
container_name: payment_test
restart: unless-stopped
env_file:
- .env
environment:
DB_URI: "postgres://pp_user:${POSTGRES_PASSWORD}@payment_processor_db:5432/payment_processor"
API_TOKEN: ${API_TOKEN}
COLD_WALLET: ${COLD_WALLET}
JETTONS: ${JETTONS}
LITESERVER: ${LITESERVER}
LITESERVER_KEY: ${LITESERVER_KEY}
SEED: ${SEED}
TON_CUTOFFS: ${TON_CUTOFFS}
IS_TESTNET: ${IS_TESTNET}
CIRCULATION: ${CIRCULATION}
HOST_A: ${HOST_A}
HOST_B: ${HOST_B}
HOT_WALLET_A: ${HOT_WALLET_A}
HOT_WALLET_B: ${HOT_WALLET_B}
networks:
- p-network
networks:
p-network:
driver: bridge