generated from wayofdev/next-starter-tpl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
78 lines (74 loc) · 2.43 KB
/
docker-compose.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
---
version: '3.9'
services:
app:
image: wayofdev/node:lts-alpine-latest
container_name: ${APP_NAME}_app
restart: on-failure
networks:
- default
- shared
volumes:
- ./:/app:rw
- ./.env:/app/apps/web/.env
working_dir: /app
command: '/bin/pnpm dev:web'
environment:
- TERM=xterm-256color`
tty: true
labels:
- traefik.enable=true
- traefik.http.routers.${APP_NAME}_web.rule=Host(`${APP_NAME}.${PROJECT_SERVICES_NAMESPACE}.docker`)
- traefik.http.routers.${APP_NAME}_web.entrypoints=websecure
- traefik.http.routers.${APP_NAME}_web.tls=true
- traefik.http.routers.${APP_NAME}_web.service=${APP_NAME}_web
- traefik.http.services.${APP_NAME}_web.loadbalancer.server.port=3000
docs:
image: wayofdev/node:lts-alpine-latest
container_name: ${APP_NAME}_docs
restart: on-failure
networks:
- default
- shared
volumes:
- ./:/app:rw
- ./.env:/app/apps/docs/.env
working_dir: /app
command: '/bin/pnpm dev:docs'
environment:
- TERM=xterm-256color`
tty: true
labels:
- traefik.enable=true
- traefik.http.routers.${APP_NAME}_docs.rule=Host(`${APP_NAME}-docs.${PROJECT_SERVICES_NAMESPACE}.docker`)
- traefik.http.routers.${APP_NAME}_docs.entrypoints=websecure
- traefik.http.routers.${APP_NAME}_docs.tls=true
- traefik.http.routers.${APP_NAME}_docs.service=${APP_NAME}_docs
- traefik.http.services.${APP_NAME}_docs.loadbalancer.server.port=3001
storybook:
image: wayofdev/node:lts-alpine-latest
container_name: ${APP_NAME}_storybook
restart: on-failure
networks:
- default
- shared
volumes:
- ./:/app:rw
- /var/run/docker.sock:/var/run/docker.sock
- ./.env:/app/apps/storybook/.env
working_dir: /app
command: '/bin/pnpm dev:storybook'
environment:
- TERM=xterm-256color`
tty: true
labels:
- traefik.enable=true
- traefik.http.routers.${APP_NAME}_storybook.rule=Host(`${APP_NAME}-storybook.${PROJECT_SERVICES_NAMESPACE}.docker`)
- traefik.http.routers.${APP_NAME}_storybook.entrypoints=websecure
- traefik.http.routers.${APP_NAME}_storybook.tls=true
- traefik.http.routers.${APP_NAME}_storybook.service=${APP_NAME}_storybook
- traefik.http.services.${APP_NAME}_storybook.loadbalancer.server.port=443
networks:
shared:
external: true
name: ${SHARED_SERVICES_NETWORK}