mirror of https://github.com/writeas/writefreely
Updates versions and uses maria DB instead of sqlite in the docker-compose. Also fixes things related to networks, generating config, etc.pull/407/head
parent
3493921837
commit
0eb1a2deec
@ -1,28 +0,0 @@ |
|||||||
[server] |
|
||||||
hidden_host = |
|
||||||
port = 8080 |
|
||||||
|
|
||||||
[database] |
|
||||||
type = mysql |
|
||||||
username = root |
|
||||||
password = changeme |
|
||||||
database = writefreely |
|
||||||
host = db |
|
||||||
port = 3306 |
|
||||||
tls = false |
|
||||||
|
|
||||||
[app] |
|
||||||
site_name = WriteFreely Example Blog! |
|
||||||
host = http://localhost:8080 |
|
||||||
theme = write |
|
||||||
disable_js = false |
|
||||||
webfonts = true |
|
||||||
single_user = true |
|
||||||
open_registration = false |
|
||||||
min_username_len = 3 |
|
||||||
max_blogs = 1 |
|
||||||
federation = true |
|
||||||
public_stats = true |
|
||||||
private = false |
|
||||||
update_checks = true |
|
||||||
|
|
@ -1,32 +1,47 @@ |
|||||||
version: "3" |
version: "3" |
||||||
|
|
||||||
|
volumes: |
||||||
|
web-keys: |
||||||
|
db-data: |
||||||
|
|
||||||
|
networks: |
||||||
|
external_writefreely: |
||||||
|
internal_writefreely: |
||||||
|
internal: true |
||||||
|
|
||||||
services: |
services: |
||||||
web: |
writefreely-web: |
||||||
build: . |
container_name: "writefreely-web" |
||||||
|
image: "conor-f:writefreely" |
||||||
|
|
||||||
volumes: |
volumes: |
||||||
- "web-data:/go/src/app" |
- "web-keys:/go/keys" |
||||||
- "./config.ini.example:/go/src/app/config.ini" |
- "./config.ini:/go/config.ini" |
||||||
|
|
||||||
|
networks: |
||||||
|
- "internal_writefreely" |
||||||
|
- "external_writefreely" |
||||||
|
|
||||||
ports: |
ports: |
||||||
- "8080:8080" |
- "8080:8080" |
||||||
networks: |
|
||||||
- writefreely |
|
||||||
depends_on: |
depends_on: |
||||||
- db |
- "writefreely-db" |
||||||
|
|
||||||
restart: unless-stopped |
restart: unless-stopped |
||||||
db: |
|
||||||
|
writefreely-db: |
||||||
|
container_name: "writefreely-db" |
||||||
image: "mariadb:latest" |
image: "mariadb:latest" |
||||||
|
|
||||||
volumes: |
volumes: |
||||||
- "./schema.sql:/tmp/schema.sql" |
- "db-data:/var/lib/mysql/data" |
||||||
- db-data:/var/lib/mysql/data |
|
||||||
networks: |
networks: |
||||||
- writefreely |
- "internal_writefreely" |
||||||
|
|
||||||
environment: |
environment: |
||||||
- MYSQL_DATABASE=writefreely |
- MYSQL_DATABASE=writefreely |
||||||
- MYSQL_ROOT_PASSWORD=changeme |
- MYSQL_ROOT_PASSWORD=changeme |
||||||
restart: unless-stopped |
|
||||||
|
|
||||||
volumes: |
restart: unless-stopped |
||||||
web-data: |
|
||||||
db-data: |
|
||||||
|
|
||||||
networks: |
|
||||||
writefreely: |
|
||||||
|
Loading…
Reference in new issue