-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
32 lines (30 loc) 路 1.07 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
version: '3.4'
services:
site:
restart: unless-stopped
networks:
- web
- db
environment:
DATABASE_URL: 'postgresql://postgres:3da805e3-365f-47a4-af60-3f3e11c81d0d@db:5432/postgres?schema=public'
env_file: .env
build:
args:
- NEXT_PUBLIC_GOOGLE_CLIENT_ID=${NEXT_PUBLIC_GOOGLE_CLIENT_ID}
- NEXT_PUBLIC_DISCORD_INVITE=${NEXT_PUBLIC_DISCORD_INVITE}
- NEXT_PUBLIC_ENDPOINT=${NEXT_PUBLIC_ENDPOINT}
- CLOUDINARY_NAME=${CLOUDINARY_NAME}
- DATABASE_URL='postgresql://postgres:3da805e3-365f-47a4-af60-3f3e11c81d0d@db:5432/postgres?schema=public'
context: .
labels:
- "traefik.enable=true"
- "traefik.http.routers.website.tls.certresolver=default"
- "traefik.http.routers.website.rule=Host(`kubemtu.com`)"
- "traefik.http.services.website.loadbalancer.healthcheck.path=/"
- "traefik.http.services.website.loadbalancer.healthcheck.interval=5s"
- "traefik.http.services.website.loadbalancer.healthcheck.timeout=1s"
networks:
web:
external: true
db:
external: true