-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (85 loc) · 2.21 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3.9"
volumes:
database:
external: true
services:
digital-wallet-2-database:
platform: linux/amd64
container_name: digital-wallet-2-database
restart: always
image: mysql:5.7
volumes:
- .database:/var/lib/mysql
ports:
- 3306:3306
environment:
- "MYSQL_DATABASE=database"
- "MYSQL_USER=user"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ALLOW_EMPTY_PASSWORD=true"
digital-wallet-2-redis:
container_name: digital-wallet-2-redis
image: redis
command: redis-server --requirepass 1234
hostname: redis
ports:
- 6379:6379
volumes:
- .redis:/var/lib/postgresql/data
# digital-wallet-2-collect:
# platform: linux/amd64
# container_name: digital-wallet-2-collect
# image: apiovani/golang-digital-walleet:lastest
# # build: .
# volumes:
# - .:/go/src/
# ports:
# - 8081:8080
# depends_on:
# - "digital-wallet-2-redis"
# command: ./service collect
# env_file:
# - .env
# digital-wallet-2-api:
# platform: linux/amd64
# container_name: digital-wallet-2-api
# image: apiovani/golang-digital-walleet:lastest
# # build: .
# volumes:
# - .:/go/src/
# ports:
# - 8080:8080
# depends_on:
# - "digital-wallet-2-redis"
# - "digital-wallet-2-database"
# command: ./service api
# env_file:
# - .env
# digital-wallet-2-prometheus:
# platform: linux/amd64
# container_name: digital-wallet-2-prometheus
# image: prom/prometheus
# volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
# ports:
# - 9090:9090
# command: --config.file=/etc/prometheus/prometheus.yml
# digital-wallet-2-pushgateway:
# platform: linux/amd64
# container_name: digital-wallet-2-pushgateway
# image: prom/pushgateway
# expose:
# - 9091
# ports:
# - 9091:9091
# depends_on:
# - digital-wallet-2-prometheus
# digital-wallet-2-grafana:
# platform: linux/amd64
# container_name: digital-wallet-2-grafana
# image: grafana/grafana
# ports:
# - 3000:3000
# depends_on:
# - digital-wallet-2-prometheus
# - digital-wallet-2-pushgateway