forked from gobicycle/bicycle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-main.yml
74 lines (68 loc) · 1.8 KB
/
docker-compose-main.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
version: '3'
services:
payment-postgres:
image: postgres:14
container_name: payment_processor_db
volumes:
- ./deploy/db/01_init.up.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
restart: always
env_file:
- .env
environment:
POSTGRES_DB: "payment_processor"
POSTGRES_USER: "pp_user"
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- p-network
payment-processor:
image: payment-processor
container_name: payment_processor
ports:
- "8081:8081"
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}
networks:
- p-network
payment-grafana:
image: grafana/grafana:latest
container_name: payment_grafana
restart: always
ports:
- '3001:3000'
volumes:
- ./deploy/grafana/main/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./deploy/grafana/main/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./deploy/grafana/main/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-rabbitmq:
image: library/rabbitmq:3-management
container_name: payment_rabbitmq
restart: always
ports:
- '15672:15672'
- '5672:5672'
networks:
- p-network
networks:
p-network:
driver: bridge