mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-23 19:31:03 +01:00
28 lines
651 B
YAML
28 lines
651 B
YAML
version: "3.4"
|
|
|
|
volumes:
|
|
mysql:
|
|
|
|
services:
|
|
server:
|
|
environment:
|
|
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}
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: mysql:8.0
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT:-root}
|
|
MYSQL_USER: ${MYSQL_USERNAME:-semaphore}
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-semaphore}
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE:-semaphore}
|
|
volumes:
|
|
- mysql:/var/lib/mysql
|