mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
32 lines
593 B
YAML
32 lines
593 B
YAML
version: "3"
|
|
services:
|
|
web:
|
|
build: .
|
|
volumes:
|
|
- "web-data:/go/src/app"
|
|
- "./config.ini.example:/go/src/app/config.ini"
|
|
ports:
|
|
- "8080:8080"
|
|
networks:
|
|
- writefreely
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
db:
|
|
image: "mariadb:latest"
|
|
volumes:
|
|
- "./schema.sql:/tmp/schema.sql"
|
|
- db-data:/var/lib/mysql/data
|
|
networks:
|
|
- writefreely
|
|
environment:
|
|
- MYSQL_DATABASE=writefreely
|
|
- MYSQL_ROOT_PASSWORD=changeme
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
web-data:
|
|
db-data:
|
|
|
|
networks:
|
|
writefreely:
|