-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
176 lines (175 loc) · 4.28 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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
version: "2"
volumes:
app_manifests:
service_hostname:
proxy_nm:
service_yggdrasil:
shared_yggdrasil:
service_yggdrasil_sock:
shared_etc:
postgres2:
gateway_client:
pleroma_uploads:
ipfs3:
monitor:
wiki:
services:
daemon_caddy:
build: ./caddy
restart: always
network_mode: host
volumes:
- shared_yggdrasil:/yggdrasil
- service_yggdrasil:/etc/yggdrasil-network
- gateway_client:/next
environment:
MDNS_TLD: "samizdev.local"
ROOT_APP_PORT: "8009"
gateway_client:
build:
context: ./athena
dockerfile: ./packages/gateway-client/Dockerfile
args:
- VERSION=latest
network_mode: host
restart: always
volumes:
- service_hostname:/usr/src/volumes/service_hostname
- gateway_client:/usr/src/volumes/gateway_client
depends_on:
- daemon_caddy
status_service:
build:
context: ./athena
dockerfile: ./packages/status-service/Dockerfile
args:
- VERSION=latest
network_mode: host
restart: always
app_service:
build:
context: ./athena
dockerfile: ./packages/app-service/Dockerfile
args:
- VERSION=latest
volumes:
- app_manifests:/usr/src/volumes/app_manifests
network_mode: host
restart: always
labels:
io.balena.features.balena-socket: "1"
networking_service:
build:
context: ./athena
dockerfile: ./packages/networking-service/Dockerfile
args:
- VERSION=latest
volumes:
- service_yggdrasil:/etc/yggdrasil-network
- shared_etc:/shared_etc
- shared_yggdrasil:/yggdrasil
- gateway_client:/next
network_mode: host
environment:
RECRAWL_KNOWN_YGGDRASIL_NODES: "true"
DEBUG: "*:INFO"
daemon_pleroma:
restart: always
network_mode: host
build:
context: ./pleroma
volumes:
- shared_etc:/shared_etc
- service_yggdrasil:/etc/yggdrasil-network
- pleroma_uploads:/var/lib/pleroma/uploads
environment:
DOMAIN: exmaple.com
INSTANCE_NAME: Pleroma
ADMIN_EMAIL: [email protected]
NOTIFY_EMAIL: [email protected]
DB_USER: pleroma
DB_PASS: ChangeMe!
DB_NAME: pleroma
DB_HOST: localhost
depends_on:
- postgres
- yggdrasil
postgres:
image: postgres:12.1-alpine
restart: always
network_mode: host
environment:
POSTGRES_USER: pleroma
POSTGRES_PASSWORD: ChangeMe!
POSTGRES_DB: pleroma
volumes:
- postgres2:/var/lib/postgresql/data
service_wifi-connect:
build: ./service/wifi-connect
privileged: true
network_mode: "host"
labels:
io.balena.features.dbus: "1"
cap_add:
- NET_ADMIN
environment:
DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"
PORTAL_SSID: "SamizdApp"
PORTAL_PASSPHRASE: "samizdapp"
depends_on:
- gateway_client
- postgres
- daemon_pleroma
- daemon_caddy
- mdns-advertise
- yggdrasil
# These will eventually live in an inherited project, but until they have a home they are saved here
yggdrasil:
# https://stackoverflow.com/a/37090165
build:
context: ./yggdrasil/
privileged: true
restart: "always"
network_mode: host
# expose:
# - "9001"
volumes:
- service_yggdrasil:/etc/yggdrasil-network
- service_yggdrasil_sock:/var/run/
- shared_etc:/shared_etc
- shared_yggdrasil:/yggdrasil
depends_on:
- status_service
mdns-advertise:
build: ./mdns-advertise
restart: "always"
privileged: true
network_mode: host
labels:
io.balena.features.dbus: "1"
environment:
DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"
MDNS_TLD: "samizdev.local"
monitor:
build: ./monitor
restart: "always"
labels:
io.balena.features.supervisor-api: "1"
io.balena.features.journal-logs: "1"
volumes:
- monitor:/monitor
hostname:
build: ./service/hostname
restart: "no"
labels:
io.balena.features.supervisor-api: 1
environment:
SET_HOSTNAME: samizdapp
# ipfs:
# image: ipfs/go-ipfs:latest
# environment:
# - IPFS_PROFILE=server
# - IPFS_PATH=/ipfsdata
# volumes:
# - ipfs3:/ipfsdata
# network_mode: host