This repository has been archived by the owner on Apr 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (61 loc) · 1.59 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
54
55
56
57
58
59
60
61
62
63
version: "3.9"
networks:
socket_proxy:
name: socket_proxy
driver: bridge
ipam:
config:
- subnet: 192.168.90.0/24
traefik_public:
name: traefik_public
driver: bridge
ipam:
config:
- subnet: 192.168.91.0/24
services:
socket-proxy:
image: tecnativa/docker-socket-proxy
container_name: socket-proxy
privileged: true
networks:
socket_proxy:
ipv4_address: 192.168.90.254
ports:
- "127.0.0.1:2375:2375"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- LOG_LEVEL=info
- CONTAINERS=1 # Traefik
traefik:
image: traefik:v2.6
container_name: traefik
depends_on:
- "jizt"
networks:
traefik_public:
ipv4_address: 192.168.91.254
socket_proxy:
ports:
- "80:80"
- "443:443"
volumes:
- ${JIZTDIR}/traefik/traefik.yml:/etc/traefik/traefik.yml
labels:
- "traefik.enable=true"
jizt:
image: jizt/backend:0.0.2
container_name: jizt-backend
depends_on:
- "socket-proxy"
networks:
- "traefik_public"
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"
- "traefik.http.routers.jizt-backend.tls=true"
- "traefik.http.routers.jizt-backend.tls.certresolver=letsencrypt"
- "traefik.http.routers.jizt-backend.rule=Host(`api.jizt.it`)"
- "traefik.http.routers.jizt-backend.entrypoints=web,websecure"
- "traefik.http.routers.jizt-backend.service=jizt-backend-svc"
- "traefik.http.services.jizt-backend-svc.loadbalancer.server.port=80"