-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (70 loc) · 2.85 KB
/
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
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"
# execute all npm commands (including npm i) from INSIDE the
# container as it is running a higher version than docker host
services:
next.prod:
image: node:18.17.0
hostname: next.prod
container_name: next.prod
environment:
# ${VAR_XXX} are required system env vars - add them to ~./bashrc
- VIRTUAL_HOST=nextprod.${LETSENCRYPT_HOST}
- LETSENCRYPT_HOST=nextprod.${LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
- NEWS_API_KEY=${NEWS_API_KEY}
# to address issue with cms.syntapse having a self signed certificate
# - NODE_TLS_REJECT_UNAUTHORIZED=0
expose:
- "3000"
volumes:
- .:/app
- ./.next.prod:/app/.next
- ./files.prod:/app/files
- ../package-mono/packages/react-rollup/dist:/app/node_modules/react-rollup
- ../package-mono/packages/react-babel/dist:/app/node_modules/react-babel
- ../package-mono/packages/react-ts/dist:/app/node_modules/react-ts
- ../package-mono/packages/esbuild-ts/dist:/app/node_modules/esbuild-ts
- ../package-mono/node_modules:/app/node_modules/react-rollup/node_modules
- ../package-mono/node_modules:/app/node_modules/react-babel/node_modules
- ../package-mono/node_modules:/app/node_modules/react-ts/node_modules
- ../package-mono/node_modules:/app/node_modules/esbuild-ts/node_modules
working_dir: /app
# command: tail -f /dev/null
command: "npm run start"
networks:
main-net:
next.dev:
image: node:18.17.0
hostname: next.dev
container_name: next.dev
environment:
# ${VAR_XXX} are required system env vars - add them to ~./bashrc
- VIRTUAL_HOST=nextdev.${LETSENCRYPT_HOST}
- LETSENCRYPT_HOST=nextdev.${LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
- NEWS_API_KEY=${NEWS_API_KEY}
# to address issue with cms.syntapse having a self signed certificate
# - NODE_TLS_REJECT_UNAUTHORIZED=0
expose:
- "3000"
volumes:
- .:/app
- ./.next.dev:/app/.next
- ./files.dev:/app/files
- ../package-mono/packages/react-rollup/dist:/app/node_modules/react-rollup
- ../package-mono/packages/react-babel/dist:/app/node_modules/react-babel
- ../package-mono/packages/react-ts/dist:/app/node_modules/react-ts
- ../package-mono/packages/esbuild-ts/dist:/app/node_modules/esbuild-ts
- ../package-mono/node_modules:/app/node_modules/react-rollup/node_modules
- ../package-mono/node_modules:/app/node_modules/react-babel/node_modules
- ../package-mono/node_modules:/app/node_modules/react-ts/node_modules
- ../package-mono/node_modules:/app/node_modules/esbuild-ts/node_modules
working_dir: /app
# command: tail -f /dev/null
command: "npm run dev"
networks:
main-net:
networks:
main-net:
external:
name: proxy_main-net