-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 860 Bytes
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
version: '3'
services:
nextjs:
build: ./
ports:
- "3000:3000" # Map host port 80 to container port 3000
caddy:
image: caddy:2.7.6
restart: unless-stopped
cap_add:
- net_admin
ports:
- "80:80" # HTTP
- "443:443" # HTTPS
- "443:443/udp" # QUIC
volumes:
# Mount the Caddyfile from the host to the container
- type: bind
source: ./caddy/caddyfile
target: /etc/caddy/caddyfile
# Mount site data from the host to the container
- type: bind
source: ./caddy/site
target: /srv
# Mount data directory from the host to the container
- type: bind
source: ./caddy/data
target: /data
# Mount config directory from the host to the container
- type: bind
source: ./caddy/config
target: /config