mirror of
https://github.com/jrasanen/writefreely-docker.git
synced 2025-05-08 23:26:02 +03:00
Update ini configuration. Add docker-compose examples
This commit is contained in:
parent
0f4b06fa8f
commit
f709b4753d
5 changed files with 232 additions and 31 deletions
35
docker-compose.mariadb.yaml
Normal file
35
docker-compose.mariadb.yaml
Normal file
|
@ -0,0 +1,35 @@
|
|||
services:
|
||||
writefreely-web:
|
||||
container_name: writefreely-web
|
||||
image: gmag11/writefreely:latest
|
||||
build:
|
||||
context: .
|
||||
init: true
|
||||
env_file:
|
||||
- .env.mariadb
|
||||
volumes:
|
||||
- ./data:/data
|
||||
ports:
|
||||
- 8080:8080
|
||||
depends_on:
|
||||
writefreely-db:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
writefreely-db:
|
||||
container_name: writefreely-db
|
||||
image: mariadb:latest
|
||||
init: true
|
||||
volumes:
|
||||
- ./db-data:/var/lib/mysql
|
||||
networks:
|
||||
- internal
|
||||
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
|
||||
start_period: 30s
|
Loading…
Add table
Add a link
Reference in a new issue