-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.staging.yml
More file actions
34 lines (29 loc) · 1.09 KB
/
docker-compose.staging.yml
File metadata and controls
34 lines (29 loc) · 1.09 KB
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
services:
# TYPESCRIPT
typescript:
container_name: "${PROJECT_NAME}_typescript"
build:
dockerfile: docker/Dockerfile
context: .
restart: always
# ports:
# - "3000:3000"
labels:
- "traefik.enable=true"
# HTTPS
- "traefik.http.routers.${PROJECT_NAME}_typescript.rule=Host(`${PROJECT_BASE_URL}`)"
- "traefik.http.services.${PROJECT_NAME}_typescript.loadbalancer.server.port=3000"
- "traefik.http.routers.${PROJECT_NAME}_typescript.middlewares=redirect-to-https"
# Enable HTTPS with Let's Encrypt
- "traefik.http.routers.${PROJECT_NAME}_typescript.tls=true"
- "traefik.http.routers.${PROJECT_NAME}_typescript.tls.certresolver=letsencrypt"
# Basic Auth
- 'traefik.http.routers.${PROJECT_NAME}_typescript.middlewares=${PROJECT_NAME}-auth'
- 'traefik.http.middlewares.${PROJECT_NAME}-auth.basicauth.users=iven:$$apr1$$gktbi3ds$$z.Qi8HCECY4FWOxT3hz0Y0'
- "traefik.docker.network=lvckyworld_proxy"
networks:
- lvckyworld_proxy
- default
networks:
lvckyworld_proxy:
external: true