mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 09:27:24 +01:00
29 lines
733 B
Plaintext
29 lines
733 B
Plaintext
services:
|
|
db:
|
|
container_name: cc-db
|
|
image: mariadb:latest
|
|
command: ["--default-authentication-plugin=mysql_native_password"]
|
|
environment:
|
|
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
|
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
|
MARIADB_USER: ${MARIADB_USER}
|
|
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
|
ports:
|
|
- "127.0.0.1:3336:3306"
|
|
volumes:
|
|
- ${DATADIR}/sql-init:/docker-entrypoint-initdb.d
|
|
cap_add:
|
|
- SYS_NICE
|
|
|
|
phpmyadmin:
|
|
container_name: cc-phpmyadmin
|
|
image: phpmyadmin
|
|
environment:
|
|
- PMA_HOST=cc-db
|
|
- PMA_USER=root
|
|
- PMA_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
|
ports:
|
|
- "127.0.0.1:${PHPMYADMIN_PORT}:80"
|
|
depends_on:
|
|
- db
|