-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose-prod.yml
46 lines (42 loc) · 1.39 KB
/
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
44
45
46
services:
coding-global-web:
container_name: coding-global-web
build:
context: ./
dockerfile: Dockerfile
target: prod
args:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_DB}
- VITE_HOST_URL=${VITE_HOST_URL}
- VITE_BOT_URL=${VITE_BOT_URL}
- VITE_GUILD_ID=${VITE_GUILD_ID}
- VITE_AUTH_PATH=${VITE_AUTH_PATH}
- AUTH_SECRET=${AUTH_SECRET}
- AUTH_TRUST_HOST=${AUTH_TRUST_HOST}
- DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID}
- DISCORD_CLIENT_SECRET=${DISCORD_CLIENT_SECRET}
restart: always
depends_on:
- coding-global-web-db
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.coding-global-web.rule=Host(`coding.global`) || Host(`www.coding.global`)"
- "traefik.http.routers.coding-global-web.entrypoints=websecure"
- "traefik.http.routers.coding-global-web.tls.certresolver=letsencrypt"
- "traefik.http.services.coding-global-web.loadbalancer.server.port=3000"
coding-global-web-db:
container_name: coding-global-web-db
image: postgres:16-alpine
restart: always
networks:
- proxy
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
proxy:
external: false
name: proxy