forked from Dokploy/docker-compose-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (26 loc) · 834 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (26 loc) · 834 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
version: "3"
services:
next-app:
build:
context: ./next-app
dockerfile: prod.Dockerfile
args:
ENV_VARIABLE: ${ENV_VARIABLE}
NEXT_PUBLIC_ENV_VARIABLE: ${NEXT_PUBLIC_ENV_VARIABLE}
restart: always
ports:
- 3000
networks:
- dokploy-network
labels:
- traefik.enable=true
- traefik.http.routers.next-app.rule=Host(`next-app.dokploy.com`)
- traefik.http.routers.next-app.entrypoints=websecure
- traefik.http.routers.next-app.tls.certResolver=letsencrypt
- traefik.http.services.next-app.loadbalancer.server.port=3000
# Add more containers below (nginx, postgres, etc.)
# Define a network, which allows containers to communicate
# with each other, by using their container name as a hostname
networks:
dokploy-network:
external: true