forked from Lyduz/gomora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
29 lines (28 loc) · 962 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
services:
gomora:
build: .
container_name: ${API_NAME}
mem_limit: "3g"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "1m"
networks:
- proxy
volumes:
- /etc/localtime:/etc/localtime:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.${API_NAME}.entrypoints=http"
- "traefik.http.routers.${API_NAME}.rule=Host(`${API_URL_REST}`)"
- "traefik.http.routers.${API_NAME}-secure.entrypoints=https"
- "traefik.http.routers.${API_NAME}-secure.rule=Host(`${API_URL_REST}`)"
- "traefik.http.routers.${API_NAME}-secure.tls=true"
- "traefik.http.routers.${API_NAME}-secure.tls.certresolver=http"
- "traefik.http.routers.${API_NAME}-secure.service=${API_NAME}"
- "traefik.http.services.${API_NAME}.loadbalancer.server.port=${API_URL_REST_PORT}"
- "traefik.docker.network=proxy"
networks:
proxy:
external: true