-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
84 lines (74 loc) · 1.62 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
---
x-ldhdns: &ldhdns
image: ghcr.io/virtualstaticvoid/ldhdns:$VERSION
build:
args:
- VERSION
- S6_VERSION
network_mode: host
security_opt:
- "apparmor=unconfined"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
- "/var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket"
services:
default-controller:
container_name: ldhdns
<<: *ldhdns
alternative-controller:
container_name: altldhdns
<<: *ldhdns
environment:
LDHDNS_NETWORK_ID: altldhdns
LDHDNS_DOMAIN_SUFFIX: alt.dns
LDHDNS_SUBDOMAIN_LABEL: alt.ldh/subdomain
LDHDNS_CONTAINER_NAME: altldhdns
web:
image: nginx:1.22.0-alpine
networks:
- frontend
labels:
"dns.ldh/subdomain": "web"
"alt.ldh/subdomain": "web2"
api:
image: nginx:1.22.0-alpine
networks:
- frontend
- backend
labels:
"dns.ldh/subdomain": "api"
"alt.ldh/subdomain": "api2"
postgres:
image: postgres:14.3-bullseye
environment:
POSTGRES_PASSWORD: "p@ssw0rd"
networks:
- backend
labels:
"dns.ldh/subdomain": "pgsql"
"alt.ldh/subdomain": "pgsql2"
test:
build:
dockerfile: Dockerfile.test
network_mode: host
environment:
PGPASSWORD: "p@ssw0rd"
profiles:
- test
networks:
frontend:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 172.30.0.0/24
- subnet: 2001:3000:3000::/64
backend:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 172.31.0.0/24
- subnet: 2001:3100:3100::/64