Don't use the mariadb root user in docker-compose examples
This commit is contained in:
parent
1386ed4023
commit
bf68ccbb25
3 changed files with 18 additions and 10 deletions
|
@ -36,6 +36,8 @@ services:
|
||||||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: supersecret
|
MYSQL_ROOT_PASSWORD: supersecret
|
||||||
|
MYSQL_USER: vikunja
|
||||||
|
MYSQL_PASSWORD: secret
|
||||||
MYSQL_DATABASE: vikunja
|
MYSQL_DATABASE: vikunja
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/mysql
|
- ./db:/var/lib/mysql
|
||||||
|
@ -44,9 +46,9 @@ services:
|
||||||
image: vikunja/api
|
image: vikunja/api
|
||||||
environment:
|
environment:
|
||||||
VIKUNJA_DATABASE_HOST: db
|
VIKUNJA_DATABASE_HOST: db
|
||||||
VIKUNJA_DATABASE_PASSWORD: supersecret
|
VIKUNJA_DATABASE_PASSWORD: secret
|
||||||
VIKUNJA_DATABASE_TYPE: mysql
|
VIKUNJA_DATABASE_TYPE: mysql
|
||||||
VIKUNJA_DATABASE_USER: root
|
VIKUNJA_DATABASE_USER: vikunja
|
||||||
VIKUNJA_DATABASE_DATABASE: vikunja
|
VIKUNJA_DATABASE_DATABASE: vikunja
|
||||||
volumes:
|
volumes:
|
||||||
- ./files:/app/vikunja/files
|
- ./files:/app/vikunja/files
|
||||||
|
|
|
@ -203,6 +203,8 @@ services:
|
||||||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: supersecret
|
MYSQL_ROOT_PASSWORD: supersecret
|
||||||
|
MYSQL_USER: vikunja
|
||||||
|
MYSQL_PASSWORD: secret
|
||||||
MYSQL_DATABASE: vikunja
|
MYSQL_DATABASE: vikunja
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/mysql
|
- ./db:/var/lib/mysql
|
||||||
|
@ -211,9 +213,9 @@ services:
|
||||||
image: vikunja/api
|
image: vikunja/api
|
||||||
environment:
|
environment:
|
||||||
VIKUNJA_DATABASE_HOST: db
|
VIKUNJA_DATABASE_HOST: db
|
||||||
VIKUNJA_DATABASE_PASSWORD: supersecret
|
VIKUNJA_DATABASE_PASSWORD: secret
|
||||||
VIKUNJA_DATABASE_TYPE: mysql
|
VIKUNJA_DATABASE_TYPE: mysql
|
||||||
VIKUNJA_DATABASE_USER: root
|
VIKUNJA_DATABASE_USER: vikunja
|
||||||
VIKUNJA_DATABASE_DATABASE: vikunja
|
VIKUNJA_DATABASE_DATABASE: vikunja
|
||||||
volumes:
|
volumes:
|
||||||
- ./files:/app/vikunja/files
|
- ./files:/app/vikunja/files
|
||||||
|
@ -259,6 +261,8 @@ services:
|
||||||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: supersecret
|
MYSQL_ROOT_PASSWORD: supersecret
|
||||||
|
MYSQL_USER: vikunja
|
||||||
|
MYSQL_PASSWORD: secret
|
||||||
MYSQL_DATABASE: vikunja
|
MYSQL_DATABASE: vikunja
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/mysql
|
- ./db:/var/lib/mysql
|
||||||
|
@ -267,9 +271,9 @@ services:
|
||||||
image: vikunja/api
|
image: vikunja/api
|
||||||
environment:
|
environment:
|
||||||
VIKUNJA_DATABASE_HOST: db
|
VIKUNJA_DATABASE_HOST: db
|
||||||
VIKUNJA_DATABASE_PASSWORD: supersecret
|
VIKUNJA_DATABASE_PASSWORD: secret
|
||||||
VIKUNJA_DATABASE_TYPE: mysql
|
VIKUNJA_DATABASE_TYPE: mysql
|
||||||
VIKUNJA_DATABASE_USER: root
|
VIKUNJA_DATABASE_USER: vikunja
|
||||||
VIKUNJA_DATABASE_DATABASE: vikunja
|
VIKUNJA_DATABASE_DATABASE: vikunja
|
||||||
volumes:
|
volumes:
|
||||||
- ./files:/app/vikunja/files
|
- ./files:/app/vikunja/files
|
||||||
|
|
|
@ -147,9 +147,9 @@ services:
|
||||||
image: vikunja/api:latest
|
image: vikunja/api:latest
|
||||||
environment:
|
environment:
|
||||||
VIKUNJA_DATABASE_HOST: db
|
VIKUNJA_DATABASE_HOST: db
|
||||||
VIKUNJA_DATABASE_PASSWORD: supersecret
|
VIKUNJA_DATABASE_PASSWORD: secret
|
||||||
VIKUNJA_DATABASE_TYPE: mysql
|
VIKUNJA_DATABASE_TYPE: mysql
|
||||||
VIKUNJA_DATABASE_USER: root
|
VIKUNJA_DATABASE_USER: vikunja
|
||||||
VIKUNJA_SERVICE_JWTSECRET: <generated secret>
|
VIKUNJA_SERVICE_JWTSECRET: <generated secret>
|
||||||
volumes:
|
volumes:
|
||||||
- ./files:/app/vikunja/files
|
- ./files:/app/vikunja/files
|
||||||
|
@ -158,6 +158,8 @@ services:
|
||||||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: supersecret
|
MYSQL_ROOT_PASSWORD: supersecret
|
||||||
|
MYSQL_USER: vikunja
|
||||||
|
MYSQL_PASSWORD: secret
|
||||||
MYSQL_DATABASE: vikunja
|
MYSQL_DATABASE: vikunja
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/mysql
|
- ./db:/var/lib/mysql
|
||||||
|
|
Loading…
Reference in a new issue