mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-25 14:25:45 +01:00
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
# This dockerfile provides an example of using the production image in a working stack
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
mysql:
|
|
image: mysql:5.6
|
|
hostname: mysql
|
|
environment:
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
|
MYSQL_DATABASE: semaphore
|
|
MYSQL_USER: semaphore
|
|
MYSQL_PASSWORD: hx4hjxqthfwbfsy5535u4agfdscm
|
|
|
|
semaphore:
|
|
image: semaphoreui/semaphore:prod-compose
|
|
build:
|
|
context: ./../../../
|
|
dockerfile: ./deployment/docker/prod/Dockerfile
|
|
environment:
|
|
SEMAPHORE_DB_DIALECT: mysql
|
|
SEMAPHORE_DB_USER: semaphore
|
|
SEMAPHORE_DB_PASS: hx4hjxqthfwbfsy5535u4agfdscm
|
|
SEMAPHORE_DB_HOST: mysql
|
|
SEMAPHORE_DB_PORT: 3306
|
|
SEMAPHORE_DB: semaphore
|
|
SEMAPHORE_ADMIN_PASSWORD: cangetin
|
|
SEMAPHORE_ADMIN_NAME: admin
|
|
SEMAPHORE_ADMIN_EMAIL: admin@localhost
|
|
SEMAPHORE_ADMIN: admin
|
|
depends_on:
|
|
- mysql
|
|
semaphore_proxy:
|
|
image: ansiblesemaphore/proxy:latest
|
|
build:
|
|
context: ./proxy
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
depends_on:
|
|
- semaphore
|