2024-04-20 15:29:49 +02:00
|
|
|
version: "3.4"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mariadb:
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
environment:
|
2024-05-02 22:55:09 +02:00
|
|
|
SEMAPHORE_DB_DIALECT: mysql
|
|
|
|
SEMAPHORE_DB_HOST: db
|
|
|
|
SEMAPHORE_DB_PORT: 3306
|
|
|
|
SEMAPHORE_DB_USER: ${MARIADB_USERNAME:-semaphore}
|
|
|
|
SEMAPHORE_DB_PASS: ${MARIADB_PASSWORD:-semaphore}
|
|
|
|
SEMAPHORE_DB: ${MARIADB_DATABASE:-semaphore}
|
2024-04-20 15:29:49 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: mariadb:10.8
|
|
|
|
restart: always
|
|
|
|
environment:
|
2024-05-02 22:55:09 +02:00
|
|
|
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT:-root}
|
|
|
|
MARIADB_USER: ${MARIADB_USERNAME:-semaphore}
|
|
|
|
MARIADB_PASSWORD: ${MARIADB_PASSWORD:-semaphore}
|
2024-05-03 22:21:21 +02:00
|
|
|
MARIADB_DATABASE: ${MARIADB_DATABASE:-semaphore}
|
2024-04-20 15:29:49 +02:00
|
|
|
volumes:
|
|
|
|
- mariadb:/var/lib/mysql
|