-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (26 loc) · 1023 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
30
31
version: "3.8"
services:
app:
container_name: pedraal_dev_${APP_ENV}
build:
context: .
env_file: .env
expose:
- 3000
networks:
- proxy
labels:
- traefik.enable=true
- traefik.http.services.pedraal-dev-${APP_ENV}.loadbalancer.server.port=3000
- traefik.http.routers.pedraal-dev-${APP_ENV}.service=pedraal-dev-${APP_ENV}@docker
- traefik.http.routers.pedraal-dev-${APP_ENV}.rule=Host(`${APP_DOMAIN}`)
- traefik.http.routers.pedraal-dev-${APP_ENV}.entrypoints=web
- traefik.http.routers.pedraal-dev-${APP_ENV}.middlewares=redirect-https
- traefik.http.routers.pedraal-dev-${APP_ENV}-secured.service=pedraal-dev-${APP_ENV}@docker
- traefik.http.routers.pedraal-dev-${APP_ENV}-secured.entrypoints=web-secured
- traefik.http.routers.pedraal-dev-${APP_ENV}-secured.tls=true
- traefik.http.routers.pedraal-dev-${APP_ENV}-secured.rule=Host(`${APP_DOMAIN}`)
- ${BASIC_AUTH_LABEL}
networks:
proxy:
external: true