-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (71 loc) · 1.77 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
---
version: "3.8"
# NOTES: 1. There are example docker-compose.yml files in the 'examples' directory on Github.
# 2. Test EXEC: docker -H tcp://localhost:2375 exec -it docker-socket-proxy /bin/ash
# 3. Test CURL: curl -I http://localhost:2375/tasks
#
services:
docker-socket-proxy:
container_name: docker-socket-proxy
# !!! THIS IS VERY DANGEROUS - ONLY DO THIS FOR TESTING !!!
ports:
- "2375:2375"
build:
context: ./
image: mjmccans/docker-socket-proxy
environment:
TZ: America/Toronto
DESCRIPTIVE_ERRORS: 1
AUTH: 0
COMMIT: 0
CONFIGS: 0
CONTAINERS: 0
CONTAINERS_ATTACH: 0
CONTAINERS_CREATE: 0
CONTAINERS_DELETE: 0
CONTAINERS_KILL: 0
CONTAINERS_PAUSE: 0
CONTAINERS_PRUNE: 0
CONTAINERS_RENAME: 0
CONTAINERS_RESTART: 0
CONTAINERS_RESIZE: 0
CONTAINERS_START: 0
CONTAINERS_STOP: 0
CONTAINERS_UPDATE: 0
CONTAINERS_UNPAUSE: 0
CONTAINERS_WAIT: 0
CONTAINERS_EXEC: 0
DISTRIBUTION: 0
EVENTS: 1
EXEC: 0
IMAGES: 0
IMAGES_BUILD: 0
IMAGES_CREATE: 0
IMAGES_DELETE: 0
IMAGES_PRUNE: 0
INFO: 0
NETWORKS: 0
NETWORKS_CONNECT: 0
NETWORKS_CREATE: 0
NETWORKS_DELETE: 0
NETWORKS_DISCONNECT: 0
NETWORKS_PRUNE: 0
NODES: 0
NODES_DELETE: 0
PING: 1
PLUGINS: 0
SECRETS: 0
SERVICES: 0
SESSION: 0
SWARM: 0
SYSTEM: 0
TASKS: 0
VERSION: 1
VOLUMES: 0
VOLUMES_CREATE: 0
VOLUMES_DELETE: 0
VOLUMES_PRUNE: 0
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./nginx.conf:/etc/nginx/nginx.conf # This is for easier testing