-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
docker-compose.yml
54 lines (53 loc) · 1.08 KB
/
docker-compose.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
48
49
50
51
52
53
54
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: .
dockerfile: ./docker/Dockerfile-dev
args:
USER_ID: ${USER_ID:-1000}
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/opt/alcali/code
ports:
- "8000:8000"
depends_on:
- db
env_file:
- env.sample
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
# ldap-server:
# image: osixia/openldap:1.3.0
# restart: always
# ports:
# - "389:389"
# - "636:636"