-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.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
version: "3.7"
networks:
mojaloop-net:
name: mojaloop-net
services:
als-msisdn-oracle-svc:
container_name: co_als-msisdn-oracle-svc
image: mojaloop/als-msisdn-oracle-svc:local
build:
context: .
cache_from:
- mojaloop/als-msisdn-oracle-svc:local
ports:
- "3000:3000"
networks:
- mojaloop-net
depends_on:
- mysql
environment:
- ALS_MSISDN_ORACLE_DATABASE_HOST=mysql
- ALS_MSISDN_ORACLE_DATABASE_PORT=3306
healthcheck:
test: ["CMD", "sh", "-c" ,"apk --no-cache add curl", ";", "curl", "http://localhost:3008/health"]
timeout: 20s
retries: 10
interval: 30s
user: root
mysql:
image: mysql/mysql-server
container_name: co_mysql
ports:
- "3306:3306"
volumes:
- ./docker/sql-init/:/docker-entrypoint-initdb.d/
environment:
- MYSQL_USER=${DBUSER:-als-msisdn-oracle}
- MYSQL_PASSWORD=${DBPASS:-password}
- MYSQL_DATABASE=${DBUSER:-als-msisdn-oracle}
- MYSQL_ALLOW_EMPTY_PASSWORD=true
networks:
- mojaloop-net
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "mysql"]
timeout: 20s
retries: 10
start_period: 40s
interval: 30s