-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.proxy.yml
47 lines (42 loc) · 1.19 KB
/
docker-compose.proxy.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
version: "2"
volumes:
node_modules:
services:
reverse-proxy:
container_name: proxy
# The official v2 Traefik docker image
image: traefik:v2.2.1
# Enables the web UI and tells Traefik to listen to docker
# command: --configFile=/home/ec2-user/sphinx-deploy/traefik.yaml
command:
# - "--log.level=DEBUG"
- "--logLevel=DEBUG"
- "--traefikLog.filePath=/var/log/traefik.log"
- "--traefikLog.format=json"
- "--accessLog.filePath=/var/log/access.log"
- "--accessLog.format=json"
ports:
# The HTTP port
# - 80:80
# The Web UI (enabled by --api.insecure=true)
- 8080:8080
# entrypoints
- 443:443
- 5000:5000
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/traefik.yaml:/etc/traefik/traefik.yaml
- ./docker/letsencrypt:/letsencrypt
environment:
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AWS_REGION=$AWS_REGION
logging:
options:
max-size: 10m
ulimits:
nproc: 65535
nofile:
soft: 1000000
hard: 1000000