-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (31 loc) · 997 Bytes
/
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
version: "3"
services:
static:
image: "mcsim/static:latest"
restart: always
volumes:
- "./nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf"
- "./tpl.static.conf:/etc/nginx/conf.d/templates/static.tmpl"
- "./images:/images"
- "./content:/content"
expose:
- "80"
environment:
- "DOMAIN_NAME=${DOMAIN_NAME}"
- "CONTENT_PWD=${CONTENT_PWD}"
- "IMAGES_PWD=${IMAGES_PWD}"
- "LUA_CODE_CACHE=${LUA_CODE_CACHE}"
- "RESOLVER=${RESOLVER}"
labels:
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.backend=static"
- "traefik.frontend.rule=Host:${DOMAIN_NAME}"
- "traefik.docker.network=static"
- "traefik.frontend.passHostHeader=true"
networks:
- "static"
command: ["dockerize", "-template", "/etc/nginx/conf.d/templates/static.tmpl:/etc/nginx/conf.d/default.conf", "/usr/local/openresty/bin/openresty", "-g", "daemon off;"]
networks:
static:
external: true