2024-05-27 13:26:24 +02:00
|
|
|
services:
|
|
|
|
writefreely-web:
|
|
|
|
container_name: writefreely-web
|
2024-05-29 10:41:24 +02:00
|
|
|
image: jrasanen/writefreely:latest
|
2024-05-27 13:26:24 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
init: true
|
|
|
|
env_file:
|
|
|
|
- .env.mariadb
|
|
|
|
volumes:
|
|
|
|
- ./data:/data
|
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
depends_on:
|
2024-05-29 11:39:56 +02:00
|
|
|
- writefreely-db
|
2024-05-27 13:26:24 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
writefreely-db:
|
|
|
|
container_name: writefreely-db
|
|
|
|
image: mariadb:latest
|
|
|
|
init: true
|
|
|
|
volumes:
|
|
|
|
- ./db-data:/var/lib/mysql
|
|
|
|
env_file:
|
|
|
|
- .env.mariadb
|
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -u${MARIADB_USER} -p${MARIADB_PASSWORD} || exit 1"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|
2024-05-29 11:39:56 +02:00
|
|
|
start_period: 10s
|