-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
125 lines (116 loc) · 3.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
125 lines (116 loc) · 3.43 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
services:
traefik:
image: traefik:v3.6
container_name: traefik
restart: always
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=traefik"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
ports:
- "2000:80"
- "4040:8080"
- "4443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs/localhost.crt:/traefik/localhost.crt:ro
- ./certs/localhost.key:/traefik/localhost.key:ro
- ./traefik-tls.yml:/traefik/tls.yml:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`traefik.localhost`)"
- "traefik.http.routers.dashboard.service=api@internal"
networks:
- traefik
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- portainer_data:/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer.rule=Host(`portainer.localhost`)"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
networks:
- traefik
mailhog:
image: mailhog/mailhog:latest
container_name: mailhog
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.mailhog.rule=Host(`mail.localhost`)"
- "traefik.http.services.mailhog.loadbalancer.server.port=8025"
networks:
- traefik
code-server:
image: lscr.io/linuxserver/code-server:latest
container_name: code-server
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
- PASSWORD=dev # mot de passe pour accéder à l'UI
- SUDO_PASSWORD=dev # sudo dans le terminal intégré
- PROXY_DOMAIN=code.localhost
- DEFAULT_WORKSPACE=/workspace
volumes:
- ./code/workspace:/workspace
- ./code/code-server-config:/config
labels:
- "traefik.enable=true"
- "traefik.http.routers.code.rule=Host(`code.localhost`)"
- "traefik.http.services.code.loadbalancer.server.port=8443"
networks:
- traefik
profiles:
- ide
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.open-webui.rule=Host(`open-webui.localhost`)"
- "traefik.http.services.open-webui.loadbalancer.server.port=8080"
volumes:
- ./open-webui_data:/app/backend/data
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- traefik
python:
build:
context: ./
dockerfile: ./python/Dockerfile
container_name: python-dev
restart: unless-stopped
environment:
- PYTHONUNBUFFERED=1
volumes:
- ./python/workspace:/workspace
- ./python/requirements.txt:/tmp/requirements.txt:ro
working_dir: /workspace
command: python -m pip install -r /tmp/requirements.txt && tail -f /dev/null
labels:
- "traefik.enable=true"
- "traefik.http.routers.python.rule=Host(`python.localhost`)"
- "traefik.http.services.python.loadbalancer.server.port=8000"
networks:
- traefik
profiles:
- python
volumes:
portainer_data:
networks:
public:
driver: bridge
attachable: true
traefik:
external: true
name: traefik