-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 930 Bytes
/
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
version: '3.8'
services:
apache:
container_name: apache
image: httpd:2.4
ports:
- "8080:8080"
volumes:
- ./Services/Apache/apache.conf:/usr/local/apache2/conf/httpd.conf
depends_on:
- django
labels:
- "traefik.http.routers.web.rule=Host(`localhost`)"
- "traefik.http.services.web.loadbalancer.server.port=8080"
django:
container_name: django
build:
context: Services/Chronocommand
ports:
- "8000:8000"
volumes:
- ./Services/Chronocommand:/src
command: python manage.py runserver 0.0.0.0:8000
traefik:
container_name: traefik
image: traefik:v3.0
ports:
- "80:80"
- "443:443"
- "8888:8080"
depends_on:
- apache
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock