-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (79 loc) · 1.53 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
version: '3'
name: main
services:
proxy:
build:
context: ./infra/
dockerfile: proxy.Dockerfile
ports:
- 80:80
- 443:443
volumes:
- /etc/letsencrypt/:/etc/letsencrypt/:ro
- /srv/ca/:/etc/ca/:ro
depends_on:
- messstellenbetreiberportal
- docs
networks:
server:
ipv6_address: 2a01:4f8:1c1c:dfb7:1::ff
# Infra
ca:
build:
context: ./ca/
dockerfile: ca.Dockerfile
volumes:
- /srv/ca/:/srv/ca/
networks:
server:
ipv6_address: 2a01:4f8:1c1c:dfb7:1::ca
docs:
build:
context: .
dockerfile: ./infra/swagger.Dockerfile
networks:
server:
backup:
build:
context: ./infra/
dockerfile: backup.Dockerfile
volumes:
- database:/in/db/:ro
- /srv/ca/:/in/ca/:ro
- /srv/backup/:/out/:rw
networks:
server:
db-mgmt:
build:
context: .
dockerfile: ./infra/db-mgmt.Dockerfile
volumes:
- database:/db/:rw
networks:
server:
profiles:
- donotstart
# Frontend
messstellenbetreiberportal:
build:
context: ./messstellenbetreiberportal/
dockerfile: webapp.Dockerfile
depends_on:
- ca
volumes:
- database:/app/backend/db/
networks:
server:
aliases:
- frontend
volumes:
database:
networks:
server:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 2a01:4f8:1c1c:dfb7:1::/80
gateway: 2a01:4f8:1c1c:dfb7:1::1