2018-11-14 04:24:06 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
volumes:
|
|
|
|
- "web-data:/go/src/app"
|
2018-11-16 20:53:42 +00:00
|
|
|
- "./config.ini.example:/go/src/app/config.ini"
|
2018-11-14 04:24:06 +00:00
|
|
|
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:
|
2018-11-16 20:53:42 +00:00
|
|
|
- MYSQL_DATABASE=writefreely
|
2018-11-14 04:24:06 +00:00
|
|
|
- MYSQL_ROOT_PASSWORD=changeme
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
web-data:
|
|
|
|
db-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
writefreely:
|