mirror of https://github.com/writeas/writefreely
A focused writing and publishing space.
https://write.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
785 B
47 lines
785 B
version: "3"
|
|
|
|
volumes:
|
|
web-keys:
|
|
db-data:
|
|
|
|
networks:
|
|
external_writefreely:
|
|
internal_writefreely:
|
|
internal: true
|
|
|
|
services:
|
|
writefreely-web:
|
|
container_name: "writefreely-web"
|
|
image: "writefreely:latest"
|
|
|
|
volumes:
|
|
- "web-keys:/go/keys"
|
|
- "./config.ini:/go/config.ini"
|
|
|
|
networks:
|
|
- "internal_writefreely"
|
|
- "external_writefreely"
|
|
|
|
ports:
|
|
- "8080:8080"
|
|
|
|
depends_on:
|
|
- "writefreely-db"
|
|
|
|
restart: unless-stopped
|
|
|
|
writefreely-db:
|
|
container_name: "writefreely-db"
|
|
image: "mariadb:latest"
|
|
|
|
volumes:
|
|
- "db-data:/var/lib/mysql/data"
|
|
|
|
networks:
|
|
- "internal_writefreely"
|
|
|
|
environment:
|
|
- MYSQL_DATABASE=writefreely
|
|
- MYSQL_ROOT_PASSWORD=changeme
|
|
|
|
restart: unless-stopped
|
|
|