2018-11-14 05:24:06 +01:00
|
|
|
version: "3"
|
2020-10-26 14:50:11 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
web-keys:
|
|
|
|
db-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
external_writefreely:
|
|
|
|
internal_writefreely:
|
|
|
|
internal: true
|
|
|
|
|
2018-11-14 05:24:06 +01:00
|
|
|
services:
|
2020-10-26 14:50:11 +01:00
|
|
|
writefreely-web:
|
|
|
|
container_name: "writefreely-web"
|
2020-10-26 14:52:04 +01:00
|
|
|
image: "writefreely:latest"
|
2020-10-26 14:50:11 +01:00
|
|
|
|
2018-11-14 05:24:06 +01:00
|
|
|
volumes:
|
2020-10-26 14:50:11 +01:00
|
|
|
- "web-keys:/go/keys"
|
|
|
|
- "./config.ini:/go/config.ini"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
- "internal_writefreely"
|
|
|
|
- "external_writefreely"
|
|
|
|
|
2018-11-14 05:24:06 +01:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2020-10-26 14:50:11 +01:00
|
|
|
|
2018-11-14 05:24:06 +01:00
|
|
|
depends_on:
|
2020-10-26 14:50:11 +01:00
|
|
|
- "writefreely-db"
|
|
|
|
|
2018-11-14 05:24:06 +01:00
|
|
|
restart: unless-stopped
|
2020-10-26 14:50:11 +01:00
|
|
|
|
|
|
|
writefreely-db:
|
|
|
|
container_name: "writefreely-db"
|
2018-11-14 05:24:06 +01:00
|
|
|
image: "mariadb:latest"
|
2020-10-26 14:50:11 +01:00
|
|
|
|
2018-11-14 05:24:06 +01:00
|
|
|
volumes:
|
2020-10-26 14:50:11 +01:00
|
|
|
- "db-data:/var/lib/mysql/data"
|
|
|
|
|
2018-11-14 05:24:06 +01:00
|
|
|
networks:
|
2020-10-26 14:50:11 +01:00
|
|
|
- "internal_writefreely"
|
|
|
|
|
2018-11-14 05:24:06 +01:00
|
|
|
environment:
|
2018-11-16 21:53:42 +01:00
|
|
|
- MYSQL_DATABASE=writefreely
|
2018-11-14 05:24:06 +01:00
|
|
|
- MYSQL_ROOT_PASSWORD=changeme
|
|
|
|
|
2020-10-26 14:50:11 +01:00
|
|
|
restart: unless-stopped
|