forked from Com2Kube/Com2Kube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
43 lines (40 loc) · 982 Bytes
/
docker-compose-prod.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
version: "2"
services:
letsencrypt:
image: linuxserver/letsencrypt
container_name: com2kube_letsencrypt
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=America/Toronto
- URL=com2kube.io
- SUBDOMAINS=dev
- VALIDATION=http
- [email protected] #optional
- DHLEVEL=2048 #optional
- ONLY_SUBDOMAINS=true #optional
# - EXTRA_DOMAINS=com2kube.com #optional
- STAGING=false #optional
volumes:
- ./frontend/nginx/nginx-https.conf:/config/nginx/site-confs/default
ports:
- 443:443
- 80:80 #optional
restart: unless-stopped
depends_on:
- backend
- frontend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.prod
container_name: "com2kube_frontend"
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile.prod
container_name: "com2kube_backend"