-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
85 lines (83 loc) · 2.57 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Web application authentication developer setup
#
# Copyright 2016--2018 Jan Pazdziora
#
# Licensed under the Apache License, Version 2.0 (the "License").
version: '2.1'
services:
ipa:
build:
context: ./src
dockerfile: Dockerfile.ipa
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
volumes:
- ./ipa-data:/data:Z
# - /sys/fs/cgroup:/sys/fs/cgroup:ro
hostname: ipa.example.test
stop_signal: RTMIN+3
# tty: true
idp:
build:
context: ./src
dockerfile: Dockerfile.idp
volumes:
- ./idp-data:/data:Z
# - /sys/fs/cgroup:/sys/fs/cgroup:ro
hostname: idp.example.test
stop_signal: RTMIN+3
links:
- ipa:ipa.example.test
# tty: true
www:
build:
context: ./src
dockerfile: Dockerfile.www
# By default, Dockerfile.www produces application backend in
# separate container. To run the example application under
# mod_wsgi directly in the www container, comment out the
# above dockerfile line and uncomment the following one.
#
# dockerfile: Dockerfile.www-with-app
#
# If you use Dockerfile.www-with-app, the link to app
# service and the whole app service definition below can
# be commented out as well.
volumes:
- ./www-data:/data:Z
# - /sys/fs/cgroup:/sys/fs/cgroup:ro
hostname: www.example.test
stop_signal: RTMIN+3
links:
- ipa:ipa.example.test
- idp:idp.example.test
- app:app.example.test
# Uncomment the following if you want to be able to access the
# www container on host's interface as well.
# ports:
# - "55080:80"
# - "55443:443"
client:
build:
context: ./src
dockerfile: Dockerfile.client
volumes:
- ./client-data:/data:Z
# - /sys/fs/cgroup:/sys/fs/cgroup:ro
hostname: client.example.test
stop_signal: RTMIN+3
links:
- ipa:ipa.example.test
- idp:idp.example.test
- www:www.example.test
ports:
- "55022:22"
app:
build:
context: ./src
# dockerfile: Dockerfile.django-dist
dockerfile: Dockerfile.django-pip
volumes:
- ./app-data:/data:Z
hostname: app.example.test
stop_signal: KILL