[fix]
This commit is contained in:
parent
34bc2d1ce2
commit
1f05a88357
3 changed files with 7 additions and 54 deletions
|
|
@ -1 +0,0 @@
|
||||||
https://github.com/writefreely/writefreely/blob/develop/docker-compose.yml
|
|
||||||
|
|
@ -1,47 +1,10 @@
|
||||||
version: "3"
|
version: '3.3'
|
||||||
|
|
||||||
volumes:
|
|
||||||
web-keys:
|
|
||||||
db-data:
|
|
||||||
|
|
||||||
networks:
|
|
||||||
external_writefreely:
|
|
||||||
internal_writefreely:
|
|
||||||
internal: true
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
writefreely-web:
|
writefreely:
|
||||||
container_name: "writefreely-web"
|
image: algernon/writefreely:latest # Example community image
|
||||||
image: "writeas/writefreely:latest"
|
container_name: writefreely
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- "web-keys:/go/keys"
|
- ./data:/data # Persistent storage for database and config
|
||||||
- "./config.ini:/go/config.ini"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
- "internal_writefreely"
|
|
||||||
- "external_writefreely"
|
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- "9876:8080"
|
- "8765:8080" # Map host port 8080 to container port 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
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
[server]
|
|
||||||
port=9876
|
|
||||||
|
|
||||||
[database]
|
|
||||||
type=sqlite3
|
|
||||||
|
|
||||||
[app]
|
|
||||||
site_name=BloG
|
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue