This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
91 lines (83 loc) · 1.92 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
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
version: "3.8"
services:
traefik:
container_name: traefik
image: traefik:v2.4
networks:
- prem-gateway
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--accesslog=true"
- "--ping"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- traefik-letsencrypt:/letsencrypt
depends_on:
- dnsd
restart: unless-stopped
dnsd:
container_name: dnsd
build: ./dns
networks:
- prem-gateway
labels:
- "traefik.enable=true"
- "traefik.http.routers.dnsd.rule=PathPrefix(`/dnsd`)"
- "traefik.http.middlewares.dnsd-strip-prefix.stripprefix.prefixes=/dnsd"
- "traefik.http.routers.dnsd.middlewares=dnsd-strip-prefix"
depends_on:
- dnsd-db-pg
- authd
environment:
PREM_GATEWAY_DNS_DB_HOST: dnsd-db-pg
ports:
- "8082:8080"
restart: unless-stopped
dnsd-db-pg:
container_name: dnsd-db-pg
image: postgres:14.7
networks:
- prem-gateway
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- dnsd-pg-data:/var/lib/postgresql/data
restart: unless-stopped
authd:
container_name: authd
build: ./auth
networks:
- prem-gateway
ports:
- "8081:8080"
restart: unless-stopped
controllerd:
container_name: controllerd
build: ./controller
networks:
- prem-gateway
ports:
- "8083:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
user: root
environment:
LETSENCRYPT_PROD: ${LETSENCRYPT_PROD}
SERVICES: ${SERVICES}
restart: unless-stopped
networks:
prem-gateway:
external: true
volumes:
dnsd-pg-data:
traefik-letsencrypt: