-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.local.yml
49 lines (49 loc) · 1.35 KB
/
compose.local.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
services:
app:
build:
context: frontend
dockerfile: Dockerfile
args:
API_URL: ${NEXT_PUBLIC_API_URL}
AUTH_URL: ${NEXT_PUBLIC_AUTH_URL}
container_name: app_container
restart: always
environment:
- NODE_ENV=production
env_file:
- .env.frontend
depends_on:
- backend
expose:
- "3000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.app.rule=Host(`aggieevents.tech`)" # Replace with your domain
- "traefik.http.routers.app.entrypoints=websecure" # HTTPS
- "traefik.http.routers.app.http=true" # Enable SSL
- "traefik.http.routers.app.http.certresolver=letsencrypt" # Use Let's Encrypt for SSL
networks:
- traefik-network
backend:
build:
context: backend
dockerfile: Dockerfile
container_name: backend_container
restart: always
environment:
- NODE_ENV=production
env_file:
- .env.backend
expose:
- "5000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`api.aggieevents.tech`)"
- "traefik.http.routers.api.entrypoints=websecure"
- "traefik.http.routers.api.http=true" # Enable SSL
- "traefik.http.routers.api.http.certresolver=letsencrypt"
networks:
- traefik-network
networks:
traefik-network:
external: true