2024-04-20 15:29:49 +02:00
|
|
|
version: "3.4"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mysql:
|
|
|
|
|
|
|
|
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: ${MYSQL_USERNAME:-semaphore}
|
|
|
|
SEMAPHORE_DB_PASS: ${MYSQL_PASSWORD:-semaphore}
|
|
|
|
SEMAPHORE_DB: ${MYSQL_DATABASE:-semaphore}
|
2024-04-20 15:29:49 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: mysql:8.0
|
|
|
|
restart: always
|
|
|
|
environment:
|
2024-05-02 22:55:09 +02:00
|
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT:-root}
|
|
|
|
MYSQL_USER: ${MYSQL_USERNAME:-semaphore}
|
|
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-semaphore}
|
|
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE:-semaphore}
|
2024-04-20 15:29:49 +02:00
|
|
|
volumes:
|
|
|
|
- mysql:/var/lib/mysql
|