-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
42 lines (41 loc) · 1.17 KB
/
docker-compose.yaml
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
version: "3.8"
services:
frontend:
container_name: frontend
image: frontend:latest
build: ./front
labels:
- "traefik.enable=true"
- "traefik.http.routers.cc.rule=Host(`cc.skew.ch`)"
- "traefik.http.routers.cc.entrypoints=websecure"
- "traefik.http.routers.cc.tls=true"
- "traefik.http.services.cc.loadbalancer.server.port=80"
backend:
container_name: backend
image: backend:latest
build: ./back
labels:
- "traefik.enable=true"
- "traefik.http.routers.ccback.rule=Host(`cc.skew.ch`) && PathPrefix(`/api`)"
- "traefik.http.routers.ccback.entrypoints=websecure"
- "traefik.http.routers.ccback.tls=true"
- "traefik.http.services.ccback.loadbalancer.server.port=5000"
judge:
container_name: judge
image: judge0/judge0:latest
volumes:
- ./judge/judge0.conf:/judge0.conf:ro
privileged: true
restart: unless-stopped
worker:
container_name: judgeworker
image: judge0/judge0:latest
command: ["./scripts/workers"]
volumes:
- ./judge/judge0.conf:/judge0.conf:ro
privileged: true
restart: always
networks:
default:
external: true
name: proxy