mirror of
https://github.com/writefreely/writefreely
synced 2024-12-01 04:49:09 +00:00
5b393309a5
This adds the first version of a Dockerfile, built on an Alpine Linux variation of the golang image, as well as a Docker Compose file that spins up both a MariaDB and the instance. It also updates the README with instructions on how to get Write Freely running with this setup.
30 lines
504 B
YAML
30 lines
504 B
YAML
version: "3"
|
|
services:
|
|
web:
|
|
build: .
|
|
volumes:
|
|
- "web-data:/go/src/app"
|
|
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_ROOT_PASSWORD=changeme
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
web-data:
|
|
db-data:
|
|
|
|
networks:
|
|
writefreely:
|