[mod] writefreely
This commit is contained in:
parent
02555dbed3
commit
a9dbbeead1
8 changed files with 46 additions and 883 deletions
|
|
@ -1,16 +1,47 @@
|
|||
version: "3"
|
||||
|
||||
volumes:
|
||||
web-keys:
|
||||
db-data:
|
||||
|
||||
networks:
|
||||
external_writefreely:
|
||||
internal_writefreely:
|
||||
internal: true
|
||||
|
||||
services:
|
||||
writefreely:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
- REPOSITORY=$REPOSITORY
|
||||
- VERSION=$VERSION
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- $PORT:8080
|
||||
environment:
|
||||
- USERNAME
|
||||
- PASSWORD
|
||||
writefreely-web:
|
||||
container_name: "writefreely-web"
|
||||
image: "writeas/writefreely:latest"
|
||||
|
||||
volumes:
|
||||
- ./config:/config:Z
|
||||
- ./data:/data:Z
|
||||
- "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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue