-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
161 lines (147 loc) · 4.07 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: '3.1'
services:
nginx-web:
image: jwilder/nginx-proxy
container_name: ${NGINX_WEB:-nginx-web}
restart: always
ports:
- "${IP:-0.0.0.0}:80:80"
- "${IP:-0.0.0.0}:443:443"
volumes:
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-./data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-./data}/certs:/etc/nginx/certs:ro
- ${NGINX_FILES_PATH:-./data}/htpasswd:/etc/nginx/htpasswd:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
logging:
options:
max-size: ${NGINX_WEB_LOG_MAX_SIZE:-4m}
max-file: ${NGINX_WEB_LOG_MAX_FILE:-10}
nginx-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: ${LETS_ENCRYPT:-nginx-letsencrypt}
restart: always
volumes:
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-./data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-./data}/certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
NGINX_PROXY_CONTAINER: ${NGINX_WEB:-nginx-web}
logging:
options:
max-size: ${NGINX_LETSENCRYPT_LOG_MAX_SIZE:-2m}
max-file: ${NGINX_LETSENCRYPT_LOG_MAX_FILE:-10}
tor:
image: goldy/tor-hidden-service
build: ./tor-hidden-service
links:
- kiwiirc
environment:
# Set mapping ports
KIWIIRC_PORTS: 8888:80
# Keep keys in volumes
volumes:
- tor-keys:/var/lib/tor/hidden_service/
secrets:
- source: foo
target: foo
mode: 0400
kiwiirc:
build: ./kiwiirc
container_name: ${KIWIIRC:-kiwiirc}
restart: always
environment:
VIRTUAL_HOST: webchat.irc.example.foo
LETENCRYPT_HOST: webchat.irc.example.foo
LETSENCRYPT_EMAIL: [email protected]
logging:
options:
max-size: ${KIWIIRC_LOG_MAX_SIZE:-4m}
max-file: ${KIWIIRC_LOG_MAX_FILE:-10}
anope:
build: ./anope
container_name: ${ANOPE:-anope}
restart: always
volumes:
- ./anope/conf:/home/ircd/unrealircd/services/conf
- ${ANOPE_DB:-./anope-db}:/home/ircd/unrealircd/services/data/db:rw
- ${ANOPE_LOGS:-./anope-logs}:/home/ircd/logs:rw
depends_on:
- ircd
networks:
irc:
aliases:
- services
logging:
options:
max-size: ${NGIRCD_LOG_MAX_SIZE:-4m}
max-file: ${NGIRCD_LOG_MAX_FILE:-10}
redis:
restart: always
image: redis:alpine
container_name: ${REDIS:-anope-redis}
ports:
- "6379"
volumes:
- ${REDIS_DATA:-./redis-data}:/data
networks:
irc:
ipv4_address: 172.16.238.10
ircd:
build: ./unrealircd
container_name: ${IRCD:-ircd}
restart: always
ports:
- "${IP:-0.0.0.0}:6667:6667"
- "${IP:-0.0.0.0}:6697:6697"
volumes:
- ${NGINX_FILES_PATH:-./data}/certs:/certs
- ./unrealircd/conf:/data/unrealircd/conf
environment:
VIRTUAL_HOST: irc.example.foo
LETSENCRYPT_HOST: irc.example.foo
LETSENCRYPT_EMAIL: [email protected]
networks:
irc:
aliases:
- ircd
default:
aliases:
- ircd
logging:
options:
max-size: ${NGIRCD_LOG_MAX_SIZE:-4m}
max-file: ${NGIRCD_LOG_MAX_FILE:-10}
privatebin:
restart: always
image: wonderfall/privatebin
container_name: ${PRIVATEBIN:-privatebin}
environment:
VIRTUAL_HOST: bin.example.foo
LETSENCRYPT_HOST: bin.example.foo
LETSENCRYPT_EMAIL: [email protected]
volumes:
- bin-data:/privatebin/data
# Set secret for key, use the same name as the service
secrets:
foo:
file: ./foo_private_key
volumes:
bin-data:
tor-keys:
driver: local
networks:
irc:
driver: bridge
ipam:
config:
-
subnet: 172.16.238.0/24
default:
external:
name: ${NETWORK:-webproxy}