70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
services:
|
|
mariadb:
|
|
image: mariadb
|
|
environment:
|
|
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
|
|
MARIADB_DATABASE: ${DB_NAME}
|
|
MARIADB_USER: ${DB_USER}
|
|
MARIADB_PASSWORD: ${DB_PASSWORD}
|
|
ports:
|
|
- 3306:3306
|
|
volumes:
|
|
- mariadb_data:/var/lib/mysql
|
|
healthcheck:
|
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
start_period: 10s
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
adminer:
|
|
image: adminer
|
|
ports:
|
|
- 8080:8080
|
|
restart: unless-stopped
|
|
minio:
|
|
image: minio/minio
|
|
command: server /data --console-address ":9001"
|
|
environment:
|
|
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
|
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
|
ports:
|
|
- 15900:9000 # API
|
|
- 15901:9001 # Web UI
|
|
volumes:
|
|
- minio_data:/data
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://192.168.187.181:15900/minio/health/live"]
|
|
start_period: 10s
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
api:
|
|
image: git.halfbinary.net/aarbit/scavengerhunt-api:2
|
|
environment:
|
|
DB_URL: jdbc:mariadb://192.168.187.181:3306/${DB_NAME}
|
|
DB_USER: ${DB_USER}
|
|
DB_PASSWORD: ${DB_PASSWORD}
|
|
JWT_SECRET: ${JWT_SECRET}
|
|
MINIO_ENDPOINT: http://192.168.187.181:15900
|
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
|
MINIO_BUCKET: ${MINIO_BUCKET}
|
|
ports:
|
|
- 15808:8080
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_healthy
|
|
minio:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://192.168.187.181:15808/actuator/health"]
|
|
start_period: 30s
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
volumes:
|
|
mariadb_data:
|
|
minio_data: |