forked from LaconicNetwork/kompose
Volume constraint is missing in mariadb service in etherpad example, so added that so that it mariadb container does not fail in environments where creating container in /var/lib/mysql is not allowed for non-root process.
28 lines
509 B
YAML
28 lines
509 B
YAML
version: "2"
|
|
|
|
services:
|
|
mariadb:
|
|
image: centos/mariadb
|
|
ports:
|
|
- "$DB_PORT"
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: $ROOT_PASS
|
|
MYSQL_DATABASE: $DB_NAME
|
|
MYSQL_PASSWORD: $DB_PASS
|
|
MYSQL_USER: $DB_USER
|
|
volumes:
|
|
- /var/lib/mysql
|
|
|
|
etherpad:
|
|
image: centos/etherpad
|
|
ports:
|
|
- "80:9001"
|
|
depends_on:
|
|
- mariadb
|
|
environment:
|
|
DB_HOST: $DB_HOST
|
|
DB_DBID: $DB_NAME
|
|
DB_PASS: $DB_PASS
|
|
DB_PORT: $DB_PORT
|
|
DB_USER: $DB_USER
|