-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 978 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 978 Bytes
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
services:
compass:
build:
context: .
dockerfile: Dockerfile
container_name: compass
ports:
- "8080:80"
volumes:
# Note: Not read-only to allow chmod for worker process access
- /var/run/docker.sock:/var/run/docker.sock
environment:
- COMPASS_NETWORK=mesh
- COMPASS_HTTP_PORT=80
# Allow worker process to send reload signal to master
cap_add:
- KILL
networks:
- mesh
restart: unless-stopped
# Test service - whoami
whoami:
image: traefik/whoami
container_name: whoami
labels:
- "compass=whoami.local.test"
- "compass.reverse_proxy={{upstreams 80}}"
networks:
- mesh
# Additional test service - nginx
nginx-test:
image: nginx:alpine
container_name: nginx-test
labels:
- "compass=nginx.local.test"
- "compass.reverse_proxy={{upstreams 80}}"
networks:
- mesh
networks:
mesh:
name: mesh
driver: bridge