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