forked from perforce/helix-authentication-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (73 loc) · 2.03 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
version: '3.7'
#
# Container names have a domain-like naming scheme to facilitate dnsmasq usage.
# By ending in .doc, which is not a valid TLD, we can easily configure dnsmasq
# to resolve these names to the docker machine. This allows the containers to
# use the same names to refer to each other as the host does when resolving the
# container names.
#
services:
# other services are in the service repository
p4d.doc:
build:
context: .
dockerfile: containers/p4d/Dockerfile
args:
BASE_PATH: "containers/p4d"
# binding to the container IP address causes p4d to exit 255
P4PORT: "0.0.0.0:1666"
APT_URL: "http://package.perforce.com/apt/ubuntu"
PUB_KEY: "http://package.perforce.com/perforce.pubkey"
container_name: p4d.doc
networks:
- authen
ports:
- "1666:1666"
chicago.doc:
build:
context: .
dockerfile: containers/chicago/Dockerfile
args:
BASE_PATH: "containers/chicago"
APT_URL: "http://package.perforce.com/apt/ubuntu"
PUB_KEY: "http://package.perforce.com/perforce.pubkey"
container_name: chicago.doc
image: chicago:latest
networks:
- authen
ports:
- "2666:2666"
tokyo.doc:
build:
context: .
dockerfile: containers/tokyo/Dockerfile
args:
BASE_PATH: "containers/tokyo"
APT_URL: "http://package.perforce.com/apt/ubuntu"
PUB_KEY: "http://package.perforce.com/perforce.pubkey"
container_name: tokyo.doc
depends_on:
- chicago.doc
networks:
- authen
ports:
- "3666:3666"
swarm.doc:
build:
context: .
dockerfile: containers/swarm/Dockerfile
args:
BASE_PATH: "containers/swarm"
P4PORT: "p4d.doc:1666"
APT_URL: "http://package.perforce.com/apt/ubuntu"
PUB_KEY: "http://package.perforce.com/perforce.pubkey"
container_name: swarm.doc
depends_on:
- p4d.doc
networks:
- authen
ports:
- "8080:80"
networks:
authen:
name: auth-service