forked from latenighttales/alcali
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-ci.yml
47 lines (46 loc) · 974 Bytes
/
docker-compose-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3'
services:
db:
image: mariadb
restart: always
environment:
MYSQL_DATABASE: salt
MYSQL_ROOT_PASSWORD: superdupersecretpassword
MYSQL_USER: alcali
MYSQL_PASSWORD: alcali
volumes:
- ./docker/sql/mysql:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
web:
build:
context: .
args:
USER_ID: ${USER_ID:-1000}
command: gunicorn config.wsgi:application -c /opt/alcali/code/docker/gunicorn_config.py
volumes:
- .:/opt/alcali/code
ports:
- "8000:8000"
depends_on:
- db
env_file:
- .env
master:
build:
context: ./docker
dockerfile: Dockerfile-master
command: honcho start
depends_on:
- web
environment:
- PYTHONUNBUFFERED=true
ports:
- "8080:8080"
minion:
build:
context: ./docker
dockerfile: Dockerfile-minion
command: salt-minion -l info
depends_on:
- master