dockerfile.yml
· 1.5 KiB · YAML
Orginalformat
services:
db:
image: mariadb:10
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: supersecret
MYSQL_USER: vikunja
MYSQL_PASSWORD: secret
MYSQL_DATABASE: vikunja
volumes:
- /volume1/docker/vikunja/db:/var/lib/mysql
restart: unless-stopped
api:
image: vikunja/api
environment:
VIKUNJA_DATABASE_HOST: db
VIKUNJA_DATABASE_PASSWORD: secret
VIKUNJA_DATABASE_TYPE: mysql
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_JWTSECRET: <JWTSECRET>
VIKUNJA_SERVICE_FRONTENDURL: https://vikunja.<domaine>.com/
VIKUNJA_SERVICE_TIMEZONE: Europe/Paris
PUID: 1026
PGID: 100
VIKUNJA_DEFAULTSETTINGS_LANGUAGE: fr
VIKUNJA_DEFAULTSETTINGS_WEEK_START: 1
VIKUNJA_MAILER_ENABLED: true
VIKUNJA_DEFAULTSETTINGS_EMAIL_REMINDERS_ENABLED: true
VIKUNJA_MAILER_HOST: <smtpServer>
VIKUNJA_MAILER_PORT: <port>
VIKUNJA_MAILER_AUTHTYPE: plain
VIKUNJA_MAILER_USERNAME: <mail@server.com>
VIKUNJA_MAILER_PASSWORD: <password>
VIKUNJA_MAILER_FROMEMAIL: <mail@server.com>
VIKUNJA_MAILER_FORCESSL: true
ports:
- 3456:3456
volumes:
- /volume1/docker/vikunja/files:/app/vikunja/files
depends_on:
- db
restart: unless-stopped
frontend:
image: vikunja/frontend
ports:
- 4321:80
environment:
VIKUNJA_API_URL: https://vikunja-api.<domaine>.com/api/v1
restart: unless-stopped
1 | services: |
2 | db: |
3 | image: mariadb:10 |
4 | command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci |
5 | environment: |
6 | MYSQL_ROOT_PASSWORD: supersecret |
7 | MYSQL_USER: vikunja |
8 | MYSQL_PASSWORD: secret |
9 | MYSQL_DATABASE: vikunja |
10 | volumes: |
11 | - /volume1/docker/vikunja/db:/var/lib/mysql |
12 | restart: unless-stopped |
13 | api: |
14 | image: vikunja/api |
15 | environment: |
16 | VIKUNJA_DATABASE_HOST: db |
17 | VIKUNJA_DATABASE_PASSWORD: secret |
18 | VIKUNJA_DATABASE_TYPE: mysql |
19 | VIKUNJA_DATABASE_USER: vikunja |
20 | VIKUNJA_DATABASE_DATABASE: vikunja |
21 | VIKUNJA_SERVICE_JWTSECRET: <JWTSECRET> |
22 | VIKUNJA_SERVICE_FRONTENDURL: https://vikunja.<domaine>.com/ |
23 | VIKUNJA_SERVICE_TIMEZONE: Europe/Paris |
24 | PUID: 1026 |
25 | PGID: 100 |
26 | VIKUNJA_DEFAULTSETTINGS_LANGUAGE: fr |
27 | VIKUNJA_DEFAULTSETTINGS_WEEK_START: 1 |
28 | VIKUNJA_MAILER_ENABLED: true |
29 | VIKUNJA_DEFAULTSETTINGS_EMAIL_REMINDERS_ENABLED: true |
30 | VIKUNJA_MAILER_HOST: <smtpServer> |
31 | VIKUNJA_MAILER_PORT: <port> |
32 | VIKUNJA_MAILER_AUTHTYPE: plain |
33 | VIKUNJA_MAILER_USERNAME: <mail@server.com> |
34 | VIKUNJA_MAILER_PASSWORD: <password> |
35 | VIKUNJA_MAILER_FROMEMAIL: <mail@server.com> |
36 | VIKUNJA_MAILER_FORCESSL: true |
37 | ports: |
38 | - 3456:3456 |
39 | volumes: |
40 | - /volume1/docker/vikunja/files:/app/vikunja/files |
41 | depends_on: |
42 | - db |
43 | restart: unless-stopped |
44 | frontend: |
45 | image: vikunja/frontend |
46 | ports: |
47 | - 4321:80 |
48 | environment: |
49 | VIKUNJA_API_URL: https://vikunja-api.<domaine>.com/api/v1 |
50 | restart: unless-stopped |