this simplifies the compose file a bit, makes the dockerfile more efficient and reintroduces the setup script that works with the new image. also adds a default 'bind' of 0.0.0.0 to the server block in config.ini.example.
30 lines
528 B
YAML
30 lines
528 B
YAML
version: "3"
|
|
services:
|
|
web:
|
|
image: writeas/writefreely:latest
|
|
volumes:
|
|
- web-data:/home/writefreely
|
|
ports:
|
|
- "8080:8080"
|
|
networks:
|
|
- writefreely
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
db:
|
|
image: "mariadb:latest"
|
|
volumes:
|
|
- db-data:/var/lib/mysql
|
|
networks:
|
|
- writefreely
|
|
environment:
|
|
- MYSQL_DATABASE=writefreely
|
|
- MYSQL_ROOT_PASSWORD=changeme
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
web-data:
|
|
db-data:
|
|
|
|
networks:
|
|
writefreely:
|