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