-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
103 lines (94 loc) · 2.17 KB
/
docker-compose.yaml
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
version: "3"
volumes:
sockets:
tor:
services:
nginx:
image: nginx:alpine
ports:
- "4010:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ../shimmie2:/var/www/html
depends_on:
- php-fpm
php-fpm:
image: php:8.2-fpm
volumes:
- ../shimmie2:/var/www/html
nginx-subdir:
image: nginx:alpine
ports:
- "4011:80"
volumes:
- ./nginx-subdir.conf:/etc/nginx/nginx.conf:ro
- ../shimmie2:/var/www/html/gallery
depends_on:
- php-fpm-subdir
php-fpm-subdir:
image: php:8.2-fpm
volumes:
- ../shimmie2:/var/www/html/gallery
lighttpd:
build: lighttpd
ports:
- "4020:80"
volumes:
- ./lighttpd.conf:/etc/lighttpd.conf:ro
- ../shimmie2:/var/www/html
lighttpd-subdir:
build: lighttpd
ports:
- "4021:80"
volumes:
- ./lighttpd-subdir.conf:/etc/lighttpd.conf:ro
- ../shimmie2:/var/www/html/gallery
varnish:
image: varnish:latest
ports:
- "4030:80"
volumes:
- ./varnish.vcl:/etc/varnish/default.vcl:ro
depends_on:
- nginx
tor:
image: barneybuffet/tor:latest
ports:
- "4031:9050"
volumes:
- sockets:/var/sockets
- tor:/tor/hidden_services/
depends_on:
- tor-nginx
environment:
TOR_SERVICE: true
TOR_SERVICE_HOSTS: 'shimmie=80:unix:/var/sockets/nginx.sock'
TOR_PROXY: true
TOR_PROXY_PORT: 0.0.0.0:9050
TOR_PROXY_ACCEPT: 'accept 127.0.0.1,accept 10.0.0.0/8,accept 172.16.0.0/12,accept 192.168.0.0/16'
tor-nginx:
image: nginx:alpine
volumes:
- sockets:/var/sockets
- ./tor-nginx.conf:/etc/nginx/nginx.conf:ro
- ../shimmie2:/var/www/html
depends_on:
- tor-php-fpm
tor-php-fpm:
image: php:8.2-fpm
volumes:
- ../shimmie2:/var/www/html
apache:
build: apache
ports:
- "4040:80"
volumes:
- ../shimmie2:/var/www/html
- ./apache.vhost:/etc/apache2/sites-enabled/000-default.conf
apache-subdir:
build: apache
ports:
- "4041:80"
volumes:
- ../shimmie2:/var/www/html/gallery
- ./apache.vhost:/etc/apache2/sites-enabled/000-default.conf