-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
37 lines (36 loc) · 1.21 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
services:
fetchfresh:
container_name: fetchfresh
restart: always
build:
context: ./
dockerfile: Dockerfile
target: prod
args:
- SECRET=${SECRET}
- DATABASE_URL=${DATABASE_URL}
- NEXT_PUBLIC_URL=${NEXT_PUBLIC_URL}
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
- NEXT_PUBLIC_SMTP_HOST=${NEXT_PUBLIC_SMTP_HOST}
- NEXT_PUBLIC_SMTP_USER=${NEXT_PUBLIC_SMTP_USER}
- NEXT_PUBLIC_SMTP_PASS=${NEXT_PUBLIC_SMTP_PASS}
environment:
- SECRET=${SECRET}
- DATABASE_URL=${DATABASE_URL}
- NEXT_PUBLIC_URL=${NEXT_PUBLIC_URL}
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
- NEXT_PUBLIC_SMTP_HOST=${NEXT_PUBLIC_SMTP_HOST}
- NEXT_PUBLIC_SMTP_USER=${NEXT_PUBLIC_SMTP_USER}
- NEXT_PUBLIC_SMTP_PASS=${NEXT_PUBLIC_SMTP_PASS}
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.fetchfresh.rule=Host(`fetchfresh.de`)"
- "traefik.http.routers.fetchfresh.entrypoints=websecure"
- "traefik.http.routers.fetchfresh.tls.certresolver=letsencrypt"
- "traefik.http.services.fetchfresh.loadbalancer.server.port=3000"
networks:
proxy:
external: false
name: proxy