-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
40 lines (39 loc) · 1.03 KB
/
docker-compose.override.yml
File metadata and controls
40 lines (39 loc) · 1.03 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
35
36
37
38
39
40
services:
nginx:
image: nginxinc/nginx-unprivileged:alpine
networks:
- app
- frontend
depends_on: !reset []
ports:
- '8080'
volumes:
- ./.docker/templates:/etc/nginx/templates:ro
- .:/app
environment:
NGINX_WEB_ROOT: /app/dist
NGINX_PORT: 8080
NGINX_MAX_BODY_SIZE: 5M
labels: &labels
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`)"
# HTTPS config - uncomment to enable redirect from :80 to :443
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
profiles: [build]
node:
image: node:20
command: npm run start
working_dir: /app
ports:
- '3000'
networks:
- app
- frontend
environment:
- NODE_ENV=development
volumes:
- .:/app:delegated
labels: *labels
profiles: [develop]