-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.26 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
version: '3'
services:
nextcap:
image: node:18.17.0-alpine
hostname: nextcap
container_name: nextcap
environment:
- VIRTUAL_HOST=nextcap.${LETSENCRYPT_HOST}
- LETSENCRYPT_HOST=nextcap.${LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
expose:
- "3000"
volumes:
- .:/app
- ./.next.dev:/app/.next
working_dir: /app
# command: tail -f /dev/null
command: "npm run dev"
# command: "npm run start"
networks:
main-net:
capacitor:
image: node:18.17.0-alpine
hostname: capacitor
container_name: capacitor
environment:
- VIRTUAL_HOST=capacitor.${LETSENCRYPT_HOST}
- LETSENCRYPT_HOST=capacitor.${LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
expose:
- "3000"
volumes:
- .:/app
- ./.next.prod:/app/.next
# configure for server or static (use matching command)
# - ./next.config.server.mjs:/app/next.config.mjs
- ./next.config.static.mjs:/app/next.config.mjs
working_dir: /app
# run interactve, dev, server or static
# command: tail -f /dev/null
# command: "npm run start"
command: "npx serve@latest out"
networks:
main-net:
networks:
main-net:
external:
name: proxy_main-net