forked from os2display/display-api-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
66 lines (61 loc) · 1.82 KB
/
docker-compose.override.yml
File metadata and controls
66 lines (61 loc) · 1.82 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
nginx:
labels:
# 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"
redis:
image: "redis:6"
command: redis-server --maxmemory 128mb --maxmemory-policy allkeys-lru
networks:
- app
ports:
- "6379"
node:
image: node:24
command: npm run dev
networks:
- app
- frontend
ports:
- "5173"
working_dir: /app
environment:
- NODE_ENV=development
volumes:
- .:/app:delegated
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}node.rule=Host(`node-${COMPOSE_DOMAIN}`)"
# HTTPS config - uncomment to enable redirect from :80 to :443
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}node.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
playwright:
# https://playwright.dev/docs/docker
# This Playwright version should match the one in `package.json`.
image: mcr.microsoft.com/playwright:v1.57.0
networks:
- app
depends_on:
- nginx
volumes:
- .:/app
- /tmp/.X11-unix:/tmp/.X11-unix
working_dir: /app
markdownlint:
image: peterdavehello/markdownlint
profiles:
- dev
volumes:
- ./:/md
prettier:
# Prettier does not (yet, fcf.
# https://github.com/prettier/prettier/issues/15206) have an official
# docker image.
# https://hub.docker.com/r/jauderho/prettier is good candidate (cf. https://hub.docker.com/search?q=prettier&sort=updated_at&order=desc)
image: jauderho/prettier
profiles:
- dev
volumes:
- ./:/work