-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
24 lines (24 loc) · 1.02 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
version: "3.9"
services:
nginx:
# NGINX Alpine comes with build-with module, such as NJS
image: nginx:1.23.3-alpine
tmpfs:
- /var/cache/nginx:exec
restart: unless-stopped
volumes:
# Bind docker-entrypoint file. Will append load_module (NJS) in NGNIX root config on startup
- ./nginx/docker-entrypoint.d/21-load-module-njs.sh:/docker-entrypoint.d/21-load-module-njs.sh:Z
# Bind our NGINX config file in NGINX folder, as a template. Will be binded with ENV Var by docker-entrypoint
- ./nginx/conf.d/default.conf:/etc/nginx/templates/default.conf.template:ro
- ./nginx/conf.d/flagship-dedicated-server.conf:/etc/nginx/templates/flagship-dedicated-server.conf.template:ro
# Bind our NJS Flagship file
- ./nginx/njs/flagship.js:/etc/nginx/njs/flagship.js:ro
environment:
- NGINX_UPSTREAM="https://httpbin.org/get" #delay/1
- FS_ENV_ID="<ENV_ID>"
- FS_API_KEY="<API_KEY>"
- FS_TIMEOUT=200ms
- FS_DEFAULT_SERVER_PORT=8079
ports:
- 80:80