-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (63 loc) · 1.59 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
version: '3.7'
#volumes:
# cache:
# name: mapproxy_cache
networks:
proxy:
name: ${NETWORK_NAME}
external: true
services:
server:
container_name: nginx
image: nginx:latest
expose:
- 80
env_file:
- .env
volumes:
# Override the standard file, so we can load the image_filter module.
- ./nginx_image_filter.conf:/etc/nginx/nginx.conf
- ./host.conf:/etc/nginx/conf.d/default.conf
- ./static_content:/srv/static:ro
- /media/photoshow:/srv/img:ro
labels:
caddy: ${SERVER}.${DOMAIN}
caddy.reverse_proxy: "{{upstreams 80}}"
caddy.tls.protocols: "tls1.3"
networks:
- proxy
# I put a second server here during testing
# but don't need it right now so it's commented out.
# server2:
# image: nginx:latest
# expose:
# - 80
# env_file:
# - .env
# volumes:
# - ./content_for_server2:/usr/share/nginx/html
# labels:
# caddy: maps.${DOMAIN}
# caddy.reverse_proxy: "{{upstreams 80}}"
# caddy.tls.protocols: "tls1.3"
# networks:
# - proxy
# mapproxy:
# image: wildsong/mapproxy_server:latest
# build:
# context: .
# dockerfile: Dockerfile.mapproxy_server
# expose:
# - 8080
# env_file:
# - .env
# volumes:
# - ./mapproxy_config:/srv/mapproxy/config:ro
# - cache:/srv/mapproxy/cache
# # This will be passed to start_mapproxy.py and
# # points to a folder, so mapproxy will start as a multiservice.
# command: ['/srv/mapproxy/config/services']
# networks:
# proxy:
# aliases:
# - mapproxy