refactor: Clean options & parameters in docker-compose.yml

This commit is contained in:
Glenn Y. Rolland 2022-05-08 21:03:05 +02:00
parent 7f11442012
commit 53c863d76c

View file

@ -4,24 +4,25 @@ version: "3.4"
services: services:
db: db:
image: mariadb:10.3 image: mariadb:10.3
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes: volumes:
- db_data:/var/lib/mysql - db_data:/var/lib/mysql
environment: environment:
MYSQL_ROOT_PASSWORD: insecure MARIADB_ROOT_PASSWORD: insecure
MYSQL_DATABASE: etherpad MARIADB_DATABASE: etherpad
etherpad: etherpad:
build: . build:
context: .
dockerfile: Dockerfile
image: glenux/etherpad:latest image: glenux/etherpad:latest
environment: environment:
DATABASE_URL: mysql://root:insecure@db/etherpad DATABASE_URL: mysql://root:insecure:3306@db/etherpad
ETHERPAD_ADMIN_USER: admin ETHERPAD_ADMIN_USER: admin
ETHERPAD_ADMIN_PASSWORD: insecure ETHERPAD_ADMIN_PASSWORD: insecure
NODE_ENV: production NODE_ENV: production
ports: ports:
- "9001:9001" - 9001:9001
depends_on:
- "db"
volumes: volumes:
db_data: {} db_data: {}