generated from Linkurious/docker-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.preprod.yml
37 lines (34 loc) · 1.17 KB
/
docker-compose.preprod.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
---
version: '3.9'
services:
lke-server:
networks:
- lke_network
- elastic_network
- traefik_network
volumes:
- ./customFiles/icons:/data/server/customFiles/icons:ro
- ./license.key:/data/license.key:ro
labels:
- "traefik.docker.network=traefik_network"
- "traefik.enable=true"
- "traefik.http.routers.lke${CHANNEL}-server-secure.entrypoints=https"
- "traefik.http.routers.lke${CHANNEL}-server-secure.rule=Host(`lke-api${CHANNEL}.${TRAEFIK_HOST}`) || (HOST(`lke${CHANNEL}.${TRAEFIK_HOST}`) && PathPrefix(`/api/`, `/icons/`, `/widget`, `/plugins/`))"
lke-frontend:
networks:
- lke_network
- traefik_network
environment:
- REACT_APP_API_BASE_URL=https://lke${CHANNEL}.${TRAEFIK_HOST}/
labels:
- "traefik.docker.network=traefik_network"
- "traefik.enable=true"
- "traefik.http.routers.lke${CHANNEL}-frontend-secure.entrypoints=https"
- "traefik.http.routers.lke${CHANNEL}-frontend-secure.rule=Host(`lke${CHANNEL}.${TRAEFIK_HOST}`)"
networks:
lke_network:
traefik_network:
external: true
elastic_network:
name: elastic_network_lke.${RUN_ENV}
external: true