-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
143 lines (132 loc) · 3.55 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
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
142
143
version: '3.9'
services:
admin-portal:
container_name: admin-portal
restart: unless-stopped
build:
context: ./admin-portal
dockerfile: Dockerfile
volumes:
- node_modules:/usr/src/app/node_modules
ports:
- 80:80
depends_on:
- db
- redis
- mpesa
- adminer
networks:
- app-network
mpesa:
build:
context: ./mpesa-gateway/
dockerfile: Dockerfile
container_name: app_mpesa_vuka
restart: unless-stopped
ports:
- "8080:8080"
depends_on:
- db
- redis
links:
- db
- redis
networks:
- app-network
env_file:
- mpesa-gateway/mpesa.env
environment:
# - JAVA_TOOL_OPTIONS=-Xmx512M -XX:MaxMetaspaceSize=768M -XX:MaxRAM=1024M
# -XX:NativeMemoryTracking=summary
# -Dcom.sun.management.jmxremote.ssl=false
# -Dcom.sun.management.jmxremote.authenticate=false
# -Dcom.sun.management.jmxremote.port=5000
# -Dcom.sun.management.jmxremote.rmi.port=5000
# -Dcom.sun.management.jmxremote.host=0.0.0.0
# -Djava.rmi.server.hostname=0.0.0.0
# - SPRING_DATASOURCE_URL=jdbc:mariadb://mariadb:3306/pacis_ussd
# - SPRING_DATASOURCE_USERNAME=dev_user
# - SPRING_DATASOURCE_PASSWORD=nimzo_indian
- SPRING_APPLICATION_JSON={"spring.redis.host":"redis", "spring.redis.port":"6379"}
# - SPRING_PROFILES_ACTIVE=local
redis:
image: redis
container_name: app_redis_vuka
command: [ "redis-server", "--protected-mode", "no" ]
hostname: redis
expose:
- "6379"
ports:
- "6379:6379"
volumes:
- $PWD/redis/redis-data:/var/lib/redis
- $PWD/redis/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- app-network
db:
image: postgres:12
container_name: app_db_vuka
hostname: db
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
- ./postgres-configs/scripts:/docker-entrypoint-initdb.d
networks:
- app-network
env_file:
- postgres-configs/pg.env
adminer:
image: adminer
container_name: app_adminer_vuka
restart: always
depends_on:
- db
ports:
- 8888:8080
environment:
ADMINER_DEFAULT_DB_DRIVER: pgsql
ADMINER_DEFAULT_DB_HOST: db
ADMINER_DEFAULT_DB_NAME: mpesa_gateway
networks:
- app-network
redis-commander:
image: rediscommander/redis-commander:latest
container_name: vuka_redis_commander
restart: unless-stopped
depends_on:
- redis
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- 8081:8081
networks:
- app-network
keycloak:
image: quay.io/keycloak/keycloak:latest
container_name: app_keycloak_vuka
environment:
DB_VENDOR: POSTGRES
DB_ADDR: db
DB_DATABASE: mpesa_gateway
DB_USER: dev_user
DB_PASSWORD: caro_kann
DB_SCHEMA: public
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Pa55w0rd
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
ports:
- 9009:8080
depends_on:
- db
networks:
- app-network
volumes:
node_modules:
ssl_data_conf:
ssl_data_www:
networks:
app-network:
driver: "bridge"