-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (50 loc) · 994 Bytes
/
docker-compose.yaml
File metadata and controls
54 lines (50 loc) · 994 Bytes
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
54
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: backend
environment:
- ENV=production
- CORS_ORIGINS=["https://bishup.com", "https://www.bishup.com"]
expose:
- "8000"
networks:
- appnet
restart: unless-stopped
frontend:
build:
context: ./chess_analyzer
dockerfile: Dockerfile
container_name: frontend
expose:
- "80"
environment:
- VITE_API_URL=https://bishup.com/api
depends_on:
- backend
networks:
- appnet
restart: unless-stopped
caddy:
image: caddy:2
container_name: caddy
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
networks:
- appnet
depends_on:
- frontend
- backend
restart: unless-stopped
networks:
appnet:
driver: bridge
volumes:
caddy_data:
caddy_config: