-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
24 lines (24 loc) · 1.05 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
version: "3.4"
services:
nginx:
image: makeshift27015/nginx-alpine-amplify
ports:
- "80:80"
environment:
# You can either replace the variables ${} entirely with your own values, or
# you can create an .env file in the same directory as this docker-compose.yml to
# set the variables there.
- API_KEY=${API_KEY}
- AMPLIFY_IMAGENAME=${AMPLIFY_IMAGENAME}
- NO_AGENT_LOGS=${NO_AGENT_LOGS-false}
volumes:
# Replace the built-in nginx.conf with your own
- ${PWD}/nginx.conf.example:/etc/nginx/nginx.conf
# Add additional config
# (if your nginx.conf has `include /etc/nginx/conf.d/*.conf;`, the default one does)
- ${PWD}/conf.d/:/etc/nginx/conf.d/
# Mount logs to the host - be careful of permissions, it must be owned by the nginx user
# which is ID 101 in this container (inherited from nginx:alpine).
# You can run `chown 101:101 access.log error.log` to fix it.
- ${PWD}/access.log:/var/log/nginx/access.log
- ${PWD}/error.log:/var/log/nginx/error.log