-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (52 loc) · 1.18 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.3'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- PORT=3000
- DISCORD_TOKEN=${DISCORD_TOKEN}
- JWT_SECRET=${JWT_SECRET}
- FRONTEND_URL=https://${DOMAIN_NAME}
- YOUTUBE_API_KEY=${YOUTUBE_API_KEY}
networks:
- gradient-network
container_name: backend
restart: always
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- VITE_HTTP_BACKEND_ENDPOINT=https://${DOMAIN_NAME}/graphql
- VITE_WS_BACKEND_ENDPOINT=wss://${DOMAIN_NAME}/subscriptions
networks:
- gradient-network
container_name: frontend
restart: always
proxy:
build:
context: ./proxy
dockerfile: Dockerfile
ports:
- 80:80
- 443:443
depends_on:
- backend
environment:
- EMAIL=${EMAIL}
- DOMAIN_NAME=${DOMAIN_NAME}
- BACKEND_NAME=backend
- BACKEND_PORT=3000
- FRONTEND_NAME=frontend
- FRONTEND_PORT=80
volumes:
- ./certs:/etc/letsencrypt
networks:
- gradient-network
container_name: proxy
restart: always
networks:
gradient-network:
driver: bridge