-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
48 lines (46 loc) · 1.4 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
services:
app:
build: .
container_name: ranger_ims_server
user: :${DAEMON_GROUP_ID:-1420}
environment:
IMS_DIRECTORY: "${IMS_DIRECTORY:-File}"
IMS_DIRECTORY_FILE: "${IMS_DIRECTORY_FILE:-/opt/ims/conf/directory.yaml}"
IMS_DB_HOST_NAME: "${IMS_DB_HOST_NAME:-ranger_ims_database}"
IMS_DB_DATABASE: "${IMS_DB_DATABASE:-ims}"
IMS_DB_USER_NAME: "${IMS_DB_USER_NAME:-ims}"
IMS_DB_PASSWORD: "${IMS_DB_PASSWORD:-ims}"
volumes:
- ./conf:/opt/ims/conf
- ./:/srv/ims
ports:
- ${IMS_SERVER_PORT:-8080}:8080
depends_on:
database:
condition: service_healthy
command:
- /opt/ims/bin/ims
- "--log-file"
- "-"
- "--config"
- "/opt/ims/conf/imsd.conf"
- server
database:
image: "${IMS_DB_IMAGE:-mariadb:10.5.24}"
container_name: ranger_ims_database
environment:
MARIADB_DATABASE: "${IMS_DB_DATABASE:-ims}"
MARIADB_USER: "${IMS_DB_USER_NAME:-ims}"
MARIADB_PASSWORD: "${IMS_DB_PASSWORD:-ims}"
MARIADB_ROOT_HOST: "${IMS_DB_ROOT_HOST:-%}"
MARIADB_ROOT_PASSWORD: "${IMS_DB_ROOT_PASSWORD:-ims-root}"
volumes:
- ./.docker/mysql/data/:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
networks:
default:
name: "${DOCKER_RANGERS_NETWORK:-rangers}"