Compare commits

..

41 commits

Author SHA1 Message Date
Jesper Hess 8bec174a46
Switch riot.data.coop->element.data.coop in riot's config.json 2020-08-31 18:57:49 +02:00
Jesper Hess 3e098546ef
Update gitea to v 1.12.3 2020-08-31 18:24:47 +02:00
Jesper Hess e7d69cd6df Merge pull request 'Gitea network werent autocreated' (#40) from rluch/ansible:rluch/fix-initially-missing-gitea-network into master 2020-08-31 05:50:05 +00:00
Jesper Hess 7926c861b2 Merge pull request 'Add element.data.coop for riot' (#42) from reynir/ansible:element into master 2020-08-31 05:49:20 +00:00
Reynir Björnsson d49a57792f Add element.data.coop for riot
Riot was renamed to element recently.
2020-08-23 11:33:45 +02:00
Jesper Hess 99cb94c94a
Update Riot and Synapse to latest 2020-08-15 17:21:12 +02:00
Jesper Hess ad243a5777
Fix problem with new.data.coop overwriting the old site 2020-06-10 20:15:13 +02:00
Vidir Valberg Gudmundsson 4cf48f13c0 Add new data.coop website. Fix postfix container for newest ansible. Comment out tt-rss. 2020-05-29 23:36:07 +02:00
Jesper Hess 5a5bb50e09
Upgrade synapse and riot to latest 2020-05-08 15:43:58 +02:00
Rasmus Lundsgaard Christiansen d49b943fd2 Gitea network werent autocreated 2020-04-12 16:34:52 +02:00
Jesper Hess 4f07b8edb2
Add file showing the variables contained in secrets.yml 2020-04-11 16:28:38 +02:00
Jesper Hess 09617dd35a
Move postfix network config to postfix.yml file instead of base services.yml file 2020-03-04 18:05:48 +01:00
Jesper Hess 98d4ab69cc Add ulovlig-logning.dk 2020-03-04 09:39:36 +00:00
Jesper Hess b454583e2c Merge pull request 'Upgrade Drone' (#39) from drone-upgrade into master 2020-03-02 09:43:50 +00:00
Jesper Hess f2a6aab2fe
Drone is working now 2020-03-01 13:47:09 +01:00
Jesper Hess e0f01bb78e
Upgrade Drone initial steps 2020-03-01 08:03:05 +01:00
Vidir Valberg Gudmundsson d51edc2922 Upgrade gitea. 2020-02-27 09:44:33 +01:00
Vidir Valberg Gudmundsson 47d7abe631 Upgrade synapse and riot. 2020-02-26 20:55:21 +01:00
Vidir Valberg Gudmundsson 6e94ac766b Upgrade portainer. 2020-02-26 20:27:05 +01:00
Jesper Hess 5f1bbae3de
Increase rate limiting for outgoing mails to support the needs of ulovliglogning 2020-02-06 21:47:43 +01:00
Jesper Hess cd2424999f
Add www.[domain] to hosted websites 2020-01-14 08:11:19 +01:00
Jesper Hess 4e0332cc79
Add www.[domain] to hosted websites 2020-01-14 08:10:03 +01:00
Jesper Hess ef3e0993da
Add www.[domain] to hosted websites 2020-01-14 07:58:32 +01:00
valberg 625e83e0d3 Merge branch 'add-ulovliglogning-website' of data.coop/ansible into master 2020-01-13 18:25:21 +00:00
Jesper Hess 1adc11e9c4 Add ulovliglogning.dk website to the stack 2020-01-13 19:24:54 +01:00
Jesper Hess 447b82326c
Add ulovliglogning.dk website to the stack 2020-01-13 17:29:09 +01:00
Jesper Hess edfd530afe
Upgrade Synapse to v1.7.1 and Riot v1.5.6 2019-12-19 11:18:41 +01:00
Jesper Hess 67443d23d4 Merge branch 'master' of deni/ansible into master 2019-11-28 10:26:50 +00:00
Denis Smajlović 9195016a40 Add user deni 2019-11-24 17:49:06 +00:00
valberg 2e5dc7158d Merge branch 'mailu-smtps' of reynir/ansible into master 2019-11-21 18:39:40 +00:00
Reynir Björnsson 6331805793 Add smtps port 2019-11-19 11:10:05 +01:00
Jesper Hess 97fe0e16ef Merge branch 'upgrade-matrix-riot' of data.coop/ansible into master
As above. Just forgot to merge :)
2019-11-11 09:03:31 +00:00
Jesper Hess 3f2c7b1547
Upgrade Synapse to v1.5.1 and Riot to v1.5.3 2019-11-11 09:56:02 +01:00
Jesper Hess 71664653b0
Upgrade to Synapse 1.0.0 and Riot-Web 1.2.1 2019-06-12 14:33:35 +02:00
Jesper Hess 57cf5103c5
Upgrade to Matrix 0.99.5 and Riot 1.2.0 2019-05-30 19:59:37 +02:00
Jesper Hess 5566be7da9
Make netdata update via ouroboros 2019-05-30 18:53:26 +02:00
Jesper Hess 70632c26c2
Add tt-rss service 2019-04-25 12:05:28 +02:00
Jesper Hess fb67e038a8
Upgrade riot to 1.0.7 2019-04-10 18:01:58 +02:00
Jesper Hess 999f266af5
Update synapse to v0.99.3 2019-04-10 17:53:46 +02:00
Jesper Hess e42937736e
Enable group/community creation for all matrix users 2019-04-10 17:46:39 +02:00
Jesper Hess ba28b1eb0c
Add SYNAPSE_CACHE_FACTOR env var 2019-03-30 09:35:04 +01:00
20 changed files with 269 additions and 164 deletions

View file

@ -1,54 +1,67 @@
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
62313439613039363637356330653731356138373839373435306535656137646266633764393537 36303830393964636165353932336334643761653732643036303563313439623836626231313739
3737663637343865303232643632613934313137613536640a633634356338353764366365626266 6239326131333263383438613161353435393036663162310a646237306461633337383838306139
66323064346539663435646265346665616465353363623732303563303838356364643734393231 37303434653266303866643162306433636532333131366132366431303766306232653837653463
3161633362383363390a376530393463643838303238386139313661366335386439373734333835 6139336230306131660a636165373732313930396632336532366239303766393937386135306235
63323034303732386430313265306465636630356330303431663761363461623530643933393831 62633837363138323365646235333137646363626430633339376636333838663738316535396161
62666438316266396432353663633331343137643265333966636436373730343938623732653030 66653931666565353337623336636338383035333133643639323739393565396434373734323235
62383536373139366239363535353463643961313839376436663830613738303262646639396131 34306132666430376537643431343362383734343861633332373838383837316266336131353231
66656532616231636537623162373965356537336436613130366464393461343730646664356466 31356665313333343139303337633530643534376338343631396431663937616535306136343266
38313439373332306265643039666532363863333364666233333861363832316637383432343464 36323761653933386231386339666333306331326161306536616238623836306335373930386539
64366536613364363265333938643438313837643936323536636335613064623639393437303466 32326331366435386132393731633664333862656130636632656335353939656638613863633637
31333539373130376230323964636335393166306662626131636462656632623635393036663437 64366662623531333933613566356632383061656165323839623732306331653133393463373465
37333735616665383431623266393365613433323335313161316161373637616563626637333861 61363036613234353962353135366361363537313138626337376138383335633865663237303464
37326532303638653139383639383166323361363334306361663261366661613038633464323337 37373032353066323532313364333863663739613631633230323339346634663733326430343263
31393538653830333865373064383837626261663163623664653938303230616334363861346132 64636331616434343331333065633936313265393739353937396165363337366263393131316661
63353036313164313265313134633861633937323335303830336232363939613635303764313063 34643263343263306235326562663065343438363338326138653066326432646531643764396161
33666161356366636139633138653736333662303364333838663033633163613136616639376532 34343834643134363662373934346463383263636436346433303231656535626664626530326131
31373131326264383666326566303930636166653463313630376235663638663937663765306439 39303231646537316136653932306135303931333762343434623636623436383561353131303163
31663039323663633735326266393263633937373339383537623835306431333636316664303864 63373833656430336365316433663538643634303962623538663362383536613136366230396533
63653564313339376135303237626366666164623738626439613562616338663539393635396437 37363963613532666434653863623030653434303463616638653135666433613030656335396238
30333036353035613131613034666262346233336563343531633033343163326264326563643235 37356632376366383463343736303265326436383435363335333838313264333134653932616465
62663538623532333432656435306462663362353630346133373262633630306262626362653733 31363832656563383035306537376532343934373933306232333631363132616665663433666133
65363031346339393632396664363362346236373035376632663466343034376566666563353231 36643131386134303362373264356437333236663232373035363765303936313162353930353033
36623538303262323265616237326630666662646634383962656533636165326665316366643231 38303864643237323437653463313238613036386461303066353465336230303632613432353661
39303465313135616238653664366637356361393165356430636137366236643938316430613838 36313761303234303363346432666638323865663764623862623165633234363437653964343830
65353331636564373136393930303537386335653766363632646433353962613033656434313063 62656365363538303035326239663264646163366332306332383262356130356436366661383234
35653365366332316434373665316230646665613166656230313832356136346439326232343166 66643832656661623132303562333432656365323836363133373932333732323133383832623939
38323934396561386138323739396166303132396234386435633965663139643234396434333163 37333632623933656336316161376565653363633330646239666266313336306563366462376531
66346634393330306638383430616433333361623861623864356563366162313830393334616138 34623636646439366438316530386334313233613963643634366135373661373138316466313739
32346633396662636633373637363262656165316434333139346530303562356236306637643365 64623835613166616165383463323137303431303035363733366563623934366439323666653633
65613361373637383936633431396636356634656333343537353762383537353035616131633732 65663532343939343334616662366633353231636135346564643034666331616666316561386664
38303736636136393039613537613831633139363338656239613261383637653332333737323034 30636535633432336438663462356232383737393031383431666664303563623932666630653233
61303839636330396139346436336663643531613364383134613061646136646236636364636662 65323932303638653562663734386637323964333331356262346463333065633565386363393064
33666564623731343264306638303333326463323363306439333762306434306235643530663931 37646563366437646330353765623236306561646433636534666438323036373132363036626438
63623932373737373539393230326538643739653734306131366365303638313263316635633439 61393866626236316238326236656164643864343734353438313466633136343931376634366261
34343231663761393266636537353330643361306139653734383466666662623931616665663239 64353631363665366237356566323532306563333937343665393166336535383636303930346362
65633136636333316266616433396166326333303033646162656466363931313539343035623666 38333733306430636436623661653066313936626362373464396138343439376430626162316466
63346162386533373334633261383237376330643738663761636166653033303933613630653835 66623837353763333864663562653166316665363537636537626234666230636665396438313832
66313439663732356539363833616338356337666335316136623231383161656362653561653565 61613330396134666437306162386335613466383231633034393639366533363137613964383135
33616437643533386263393733636666373237663132343432636664633535653535316134313266 35356136393962353262313635343031323638326163336433303066393939646536653033343530
66363362383662313632633535613635656364323939313466303634646237653061353766373831 38303935663038303639616661346664666435393266653663373435363433386461633133343964
62303366366564653231613863633564303637346262336535386366663034663832663762666132 65633532656566613638333266393131653863336563386262643630633164346139383436326463
64333630666463653266333430386135386436643939393964303230366538336562333737616639 62316131363335376336366332323564383036333139386462353933316461346363626465396631
65646566663363313430396132653832646263393739656564653138353637373362613261366230 39616164316463323162616235653365363737373736646331303436303037333536633466303533
62616561303735316230626134353266613938326563326232623361656364623062326365343534 32663335386332663334653734303136333066636234643537393931626333303735386238373763
62346433373965336430326632333634306463343934393830393165393933323439393534386665 33323333646531633964613633356539636538306163303938373638623230396661663538653463
32373235353037626638343066386563663431356465353039353338643835653166333761386433 35396434303634316631376138336530393134353235383637326466306363313462323330623535
64333338306661346436373238646134653233666565653834303935303235653661343366653563 33353335306364323335316336643233386561306134636461336537353838373830373031616636
63356566633730303033376230356363326561663232386161333566616334623236663562613234 62333335616639353436303336653965303132316439316362303931373465376264396139346631
63646561623565366332313837353461313566653531356662613663323065613035323731323832 61393064326433366337613266306263336163393731633165303536636132636638656339373634
31386166623935373139356239353037633363313531396466363735613332653430396161303366 32313637666334313935613564316331396437343335313336666137366133376666306138383163
37376238333831306231393433313734303839376132656532616461356662383430303532373937 62383131616339393534613231616134383562346163343430323261336531306332363736396663
39303634303762373736626439323830353665343162363531376134616466303762633535343866 39643134633838393566643237656663313161326631316437663463653566343238343736656566
3162 35663231623533323261326162356137646436643766646439663538306661643861356565666434
38353131363863666439316666353965663531323662376235636533363262353131323166326335
61656432666130313762376334656434333532636165313834333634646465346234653662393735
35643138623832646633666366616436323730383066323637316635336134356461353666636164
30633833313863656237653762373965376638393232376532666361396363303030383138616631
32633739626565383161343065646232636464373538626330636466316337663739376638386337
32383763313064666464623137373036336562633734313663313463386430313838636165313962
31383466363466396337333837626462303434353739343338313137633736313664346239666237
62313462366136313037646264663533323738656138353235646136383334613035383236383865
38666432313761653234636363396361643139353730323237616663323433363463373666613765
31656430326138373434356130626465643733313065366562313566326633653832316265636538
35396164313932356432306639653461343063643666656265333033643863303637313031653134
39636436636333343030333762376463303538626665343434633236353236373765643231383933
3130336364366434306366623062613130616230366633333536

View file

@ -0,0 +1,27 @@
# These are the variables contained in secrets.yml
postgres_passwords:
fider: xxx
nextcloud: xxx
passit: xxx
gitea: xxx
matrix: xxx
codimd: xxx
mailu: xxx
ttrss: xxx
fider_jwt_secret: xxx
ldap_admin_password: xxx
ldap_config_password: xxx
passit_secret_key: xxx
docker_password: xxx
mailu_secret_key: xxx
drone_secrets:
oauth_client_id: xxx
oauth_client_secret: xxx
rpc_shared_secret: xxx

View file

@ -21,4 +21,11 @@ users:
groups: groups:
- sudo - sudo
deni:
comment: Denis Smajlović
key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC0pB42dtqruXr2Ha8Rdp3QoSrMOLU5cbLMfuNTNmgwPZmprhGGRTAsz8E0aG+5HCFBmW6JxiTGyHGdIZrhYWpKYshxxn4zODfitP7IzDgvg9Pz0Ugw/c5i5eKjkVfw9xLZKjO/H3Ql8R+wFMawpdw7j+Q9G+J3eIidEI6TmSvJVWijBxpLI4qrLceL084qg93XpJENYBOcvx9fYQQ+Es0jo4hmPuHWq5VIkIoIfvVvdhwjlaBsqv2je5BNx8uTMVIyV34ZHpJc95wJ6MOcqpQunW2bR4mGc9FLh67eP2ba9nDoQ0pnnlWGqAIKx5P1ELIg7RM3HhuwfRVh4DxCfjXpMz3l1gr1dA1wVD9bOtzbPWLjo7LNkRcT/loba/jpznTNIEv+kawmm/H0aTZZdlofkGHuX0iOpLV1c1tCDMH1s/MCqwosSRihrXhSOozsABvaaZpJiHcpE4DcNr+xJhe1XrHMqR30KU0r7ulIP8JdhzMNEsq3HxZQh9s8XLIUukrpcpOgJYyGuQK3kG6li5kYbmVqjLDQ1xHi/4r/4TXjJYpsFCZ71SURLzxoF1nauHpBLKcHI3MPFvqr27SQcM92fO14wKDAmAtHINwzMQjlda6B0jFNC+2xUfHrH7yIhwSktytq5qbhiFKK71DSLiMKFvOqoTVWRckO2+Zw1HZB+Q== deni@deni.dk
password: $6$ooKtdqASOxYJN2CJ$ziMrGG/qIOeyiTGjx.hPYjVBlHpzM9YY6qCJB9/L8aR33feUvXxZNBCgME93ZhbwDBjblS/tP796LsCF4i17D.
groups:
- sudo
volume_root_folder: "/docker-volumes" volume_root_folder: "/docker-volumes"

View file

@ -23,9 +23,11 @@
- docker_registry - docker_registry
- drone - drone
- websites - websites
- ulovliglogning-dk
- ouroboros - ouroboros
- mailu - mailu
- portainer - portainer
# - tt-rss
smtp_host: "postfix" smtp_host: "postfix"
smtp_port: "587" smtp_port: "587"

View file

@ -28,7 +28,7 @@ matrix:
volume_folder: "{{ volume_root_folder }}/matrix" volume_folder: "{{ volume_root_folder }}/matrix"
riot: riot:
domain: "riot.{{ base_domain }}" domain: "riot.{{ base_domain }},element.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/riot" volume_folder: "{{ volume_root_folder }}/riot"
privatebin: privatebin:
@ -49,10 +49,13 @@ docker_registry:
password: "{{ docker_password }}" password: "{{ docker_password }}"
data_coop_website: data_coop_website:
domain: "{{ base_domain }}" domain: "{{ base_domain }},www.{{ base_domain }}"
cryptohagen_website: cryptohagen_website:
domain: "cryptohagen.dk" domain: "cryptohagen.dk,www.cryptohagen.dk"
ulovliglogning_website:
domain: "ulovliglogning.dk,www.ulovliglogning.dk,ulovlig-logning.dk"
drone: drone:
domain: "drone.{{ base_domain }}" domain: "drone.{{ base_domain }}"
@ -69,3 +72,7 @@ portainer:
domain: "portainer.{{ base_domain }}" domain: "portainer.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/portainer" volume_folder: "{{ volume_root_folder }}/portainer"
ttrss:
domain: rss.{{ base_domain }}
volume_folder: "{{ volume_root_folder }}/tt-rss"

View file

@ -881,7 +881,7 @@ password_config:
# Whether to allow non server admins to create groups on this server # Whether to allow non server admins to create groups on this server
# #
enable_group_creation: false enable_group_creation: true
# If enabled, non server admins can only create groups with local parts # If enabled, non server admins can only create groups with local parts
# starting with this prefix # starting with this prefix

View file

@ -1,7 +1,7 @@
{ {
"default_hs_url": "https://{{ matrix.domain }}", "default_hs_url": "https://{{ matrix.domain }}",
"default_is_url": "https://vector.im", "default_is_url": "https://vector.im",
"brand": "riot.data.coop", "brand": "element.data.coop",
"integrations_ui_url": "https://scalar.vector.im/", "integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api", "integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [ "integrations_widgets_urls": [

View file

@ -3,14 +3,6 @@
docker_network: docker_network:
name: external_services name: external_services
- name: setup network for postfix
docker_network:
name: postfix
ipam_options:
subnet: '172.16.0.0/16'
gateway: 172.16.0.1
- name: setup services - name: setup services
include_tasks: "services/{{ item }}.yml" include_tasks: "services/{{ item }}.yml"
with_items: "{{ services }}" with_items: "{{ services }}"

View file

@ -1,21 +1,51 @@
--- ---
- name: Drone container - name: set up drone with docker runner
docker_container: docker_compose:
name: drone project_name: drone
image: drone/drone:latest pull: yes
restart_policy: unless-stopped definition:
version: "3.6"
services:
drone:
container_name: "drone"
image: drone/drone:1
restart: unless-stopped
networks: networks:
- name: external_services - external_services
- drone
volumes: volumes:
- "{{ drone.volume_folder }}:/data" - "{{ drone.volume_folder }}:/data"
- "/var/run/docker.sock:/var/run/docker.sock" - "/var/run/docker.sock:/var/run/docker.sock"
env: environment:
DRONE_GITEA_SERVER: "https://{{ gitea.domain }}" DRONE_GITEA_SERVER: "https://{{ gitea.domain }}"
DRONE_GITEA_ALWAYS_AUTH: "False" DRONE_GITEA_CLIENT_ID: "{{ drone_secrets.oauth_client_id }}"
DRONE_RUNNER_CAPACITY: "2" DRONE_GITEA_CLIENT_SECRET: "{{ drone_secrets.oauth_client_secret }}"
DRONE_GIT_ALWAYS_AUTH: "true"
DRONE_SERVER_HOST: "{{ drone.domain }}" DRONE_SERVER_HOST: "{{ drone.domain }}"
DRONE_SERVER_PROTO: "https" DRONE_SERVER_PROTO: "https"
DRONE_RPC_SECRET: "{{ drone_secrets.rpc_shared_secret }}"
PLUGIN_CUSTOM_DNS: "91.239.100.100" PLUGIN_CUSTOM_DNS: "91.239.100.100"
VIRTUAL_HOST: "{{ drone.domain }}" VIRTUAL_HOST: "{{ drone.domain }}"
LETSENCRYPT_HOST: "{{ drone.domain }}" LETSENCRYPT_HOST: "{{ drone.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
drone-runner-docker:
container_name: "drone-runner-docker"
image: "drone/drone-runner-docker:1"
restart: unless-stopped
networks:
- drone
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
DRONE_RPC_HOST: "{{ drone.domain }}"
DRONE_RPC_PROTO: "https"
DRONE_RPC_SECRET: "{{ drone_secrets.rpc_shared_secret }}"
DRONE_RUNNER_CAPACITY: 2
DRONE_RUNNER_NAME: "data.coop_drone_runner"
networks:
drone:
external_services:
external:
name: external_services

View file

@ -1,9 +1,13 @@
--- ---
- name: gitea network
docker_network:
name: gitea
# old DNS: 138.68.71.153 # old DNS: 138.68.71.153
- name: gitea container - name: gitea container
docker_container: docker_container:
name: gitea name: gitea
image: gitea/gitea:latest image: gitea/gitea:1.12.3
restart_policy: unless-stopped restart_policy: unless-stopped
networks: networks:
- name: gitea - name: gitea

View file

@ -1,68 +0,0 @@
---
- name: run mailman server containers
docker_service:
definition:
version: '2'
services:
mailman-core:
image: maxking/mailman-core:0.2
container_name: mailman-core
hostname: mailman-core
volumes:
- /opt/mailman/core:/opt/mailman/
stop_grace_period: 30s
links:
- database:database
depends_on:
- database
environment:
- DATABASE_URL=postgres://mailman:mailmanpass@database/mailmandb
- DATABASE_TYPE=postgres
- DATABASE_CLASS=mailman.database.postgresql.PostgreSQLDatabase
- HYPERKITTY_API_KEY={{ hyperkitty_api_key }}
networks:
mailman:
ipv4_address: 172.19.199.2
mailman-web:
image: maxking/mailman-web:0.2
container_name: mailman-web
hostname: mailman-web
depends_on:
- database
links:
- mailman-core:mailman-core
- database:database
volumes:
- /opt/mailman/web:/opt/mailman-web-data
environment:
- DATABASE_TYPE=postgres
- DATABASE_URL=postgres://mailman:{{ postgresql}}@database/mailmandb
- HYPERKITTY_API_KEY={{ hyperkitty_api_key }}
networks:
mailman:
ipv4_address: 172.19.199.3
database:
environment:
POSTGRES_DB: mailmandb
POSTGRES_USER: mailman
POSTGRES_PASSWORD: mailmanpass
restart: always
image: postgres:9.6-alpine
volumes:
- /opt/mailman/database:/var/lib/postgresql/data
networks:
mailman:
ipv4_address: 172.19.199.4
networks:
mailman:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.19.199.0/24

View file

@ -78,6 +78,7 @@
- "993:993" - "993:993"
- "25:25" - "25:25"
- "587:587" - "587:587"
- "465:465"
networks: networks:
- default - default
- external_services - external_services

View file

@ -77,7 +77,7 @@
matrix_app: matrix_app:
container_name: matrix container_name: matrix
image: matrixdotorg/synapse:v0.99.2 image: matrixdotorg/synapse:v1.18.0
restart: unless-stopped restart: unless-stopped
networks: networks:
- matrix - matrix
@ -88,6 +88,7 @@
- "{{ matrix.volume_folder }}/data:/data" - "{{ matrix.volume_folder }}/data:/data"
environment: environment:
SYNAPSE_CONFIG_PATH: "/data/homeserver.yaml" SYNAPSE_CONFIG_PATH: "/data/homeserver.yaml"
SYNAPSE_CACHE_FACTOR: "2"
SYNAPSE_LOG_LEVEL: "INFO" SYNAPSE_LOG_LEVEL: "INFO"
VIRTUAL_HOST: "{{ matrix.domain }}" VIRTUAL_HOST: "{{ matrix.domain }}"
VIRTUAL_PORT: "8008" VIRTUAL_PORT: "8008"
@ -96,7 +97,7 @@
riot: riot:
container_name: riot_app container_name: riot_app
image: avhost/docker-matrix-riot:v1.0.3 image: avhost/docker-matrix-riot:v1.7.3
restart: unless-stopped restart: unless-stopped
networks: networks:
- matrix - matrix

View file

@ -21,5 +21,7 @@
LETSENCRYPT_HOST: "{{ netdata.domain }}" LETSENCRYPT_HOST: "{{ netdata.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
PGID: "999" PGID: "999"
labels:
com.ouroboros.enable: "true"

View file

@ -8,7 +8,7 @@
- name: run portainer - name: run portainer
docker_container: docker_container:
name: portainer name: portainer
image: portainer/portainer image: portainer/portainer:1.23.1
restart_policy: always restart_policy: always
networks: networks:
- name: external_services - name: external_services

View file

@ -1,5 +1,12 @@
--- ---
- name: setup network for postfix
docker_network:
name: postfix
ipam_config:
- subnet: '172.16.0.0/16'
gateway: 172.16.0.1
- name: setup postfix docker container for outgoing mail - name: setup postfix docker container for outgoing mail
docker_container: docker_container:
name: postfix name: postfix

View file

@ -0,0 +1,53 @@
---
- name: create tt-rss folders
file:
name: "{{ ttrss.volume_folder }}/{{ volume }}"
state: directory
loop:
- "config"
- "db"
loop_control:
loop_var: volume
- name: "set up tt-rss"
docker_service:
project_name: "tt-rss"
pull: yes
definition:
version: "3.6"
services:
ttrss_db:
container_name: "ttrss_db"
image: "postgres:11"
restart: "unless-stopped"
networks:
- "ttrss"
volumes:
- "{{ ttrss.volume_folder }}/db:/var/lib/postgresql/data"
environment:
POSTGRES_USER: "ttrss"
POSTGRES_PASSWORD: "{{ postgres_passwords.ttrss }}"
ttrss_app:
container_name: ttrss_app
image: "linuxserver/tt-rss"
restart: unless-stopped
networks:
- ttrss
- external_services
volumes:
- "{{ ttrss.volume_folder }}/config:/config"
environment:
VIRTUAL_HOST: "{{ ttrss.domain }}"
LETSENCRYPT_HOST: "{{ ttrss.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
TZ: "Europe/Copenhagen"
labels:
com.ouroboros.enable: "true"
networks:
external_services:
external:
name: external_services
ttrss:
name: "ttrss"

View file

@ -0,0 +1,13 @@
- name: setup ulovliglogning.dk website docker container
docker_container:
name: ulovliglogning_website
restart_policy: unless-stopped
image: ulovliglogning/ulovliglogning.dk:latest
networks:
- name: external_services
env:
VIRTUAL_HOST: "{{ ulovliglogning_website.domain }}"
LETSENCRYPT_HOST: "{{ ulovliglogning_website.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
labels:
com.ouroboros.enable: "true"

View file

@ -14,6 +14,20 @@
labels: labels:
com.ouroboros.enable: "true" com.ouroboros.enable: "true"
- name: setup new data.coop website using hugo
docker_container:
name: new.data.coop_website
image: docker.data.coop/data-coop-website:hugo
restart_policy: unless-stopped
networks:
- name: external_services
env:
VIRTUAL_HOST : "new.{{ data_coop_website.domain }}"
LETSENCRYPT_HOST: "new.{{ data_coop_website.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
labels:
com.ouroboros.enable: "true"
- name: setup cryptohagen.dk website docker container - name: setup cryptohagen.dk website docker container
docker_container: docker_container:
name: cryptohagen_website name: cryptohagen_website

View file

@ -41,7 +41,7 @@ POSTMASTER=admin
TLS_FLAVOR=mail TLS_FLAVOR=mail
# Authentication rate limit (per source IP address) # Authentication rate limit (per source IP address)
AUTH_RATELIMIT=10/minute;1000/hour AUTH_RATELIMIT=120/minute;1200/hour
# Opt-out of statistics, replace with "True" to opt out # Opt-out of statistics, replace with "True" to opt out
DISABLE_STATISTICS=False DISABLE_STATISTICS=False