Update service config spec to include published resources

This commit is contained in:
Ethan Paul 2021-12-23 23:35:32 -05:00
parent 924341a276
commit 46e1366c4f
No known key found for this signature in database
GPG Key ID: 6A337337DF6B5B1A
4 changed files with 28 additions and 15 deletions

View File

@ -7,11 +7,11 @@ x-global-env: &globalenv
LOCAL_GID: "{{ _app_account.uid }}" LOCAL_GID: "{{ _app_account.uid }}"
ASPNETCORE_ENVIRONMENT: Production ASPNETCORE_ENVIRONMENT: Production
globalSettings__selfHosted: "true" globalSettings__selfHosted: "true"
globalSettings__baseServiceUri__vault: https://{{ app.domain }} globalSettings__baseServiceUri__vault: https://{{ app.publish.domain }}
globalSettings__baseServiceUri__api: https://{{ app.domain }}/api globalSettings__baseServiceUri__api: https://{{ app.publish.domain }}/api
globalSettings__baseServiceUri__identity: https://{{ app.domain }}/identity globalSettings__baseServiceUri__identity: https://{{ app.publish.domain }}/identity
globalSettings__baseServiceUri__admin: https://{{ app.domain }}/admin globalSettings__baseServiceUri__admin: https://{{ app.publish.domain }}/admin
globalSettings__baseServiceUri__notifications: https://{{ app.domain }}/notifications globalSettings__baseServiceUri__notifications: https://{{ app.publish.domain }}/notifications
globalSettings__baseServiceUri__internalNotifications: http://bitwarden_notifications:5000 globalSettings__baseServiceUri__internalNotifications: http://bitwarden_notifications:5000
globalSettings__baseServiceUri__internalAdmin: http://bitwarden_admin:5000 globalSettings__baseServiceUri__internalAdmin: http://bitwarden_admin:5000
globalSettings__baseServiceUri__internalIdentity: http://bitwarden_identity:5000 globalSettings__baseServiceUri__internalIdentity: http://bitwarden_identity:5000
@ -22,7 +22,7 @@ x-global-env: &globalenv
globalSettings__sqlServer__connectionString: "Data Source=tcp:mssql,1433;Initial Catalog=vault;Persist Security Info=False;User ID=sa;Password=e934c0bb-3b5a-4e6b-b525-cd6d83004e1a;MultipleActiveResultSets=False;Connect Timeout=30;Encrypt=True;TrustServerCertificate=True" globalSettings__sqlServer__connectionString: "Data Source=tcp:mssql,1433;Initial Catalog=vault;Persist Security Info=False;User ID=sa;Password=e934c0bb-3b5a-4e6b-b525-cd6d83004e1a;MultipleActiveResultSets=False;Connect Timeout=30;Encrypt=True;TrustServerCertificate=True"
globalSettings__identityServer__certificatePassword: {{ app.settings.certificatePassword }} globalSettings__identityServer__certificatePassword: {{ app.settings.certificatePassword }}
globalSettings__attachment__baseDirectory: /etc/bitwarden/core/attachments globalSettings__attachment__baseDirectory: /etc/bitwarden/core/attachments
globalSettings__attachment__baseUrl: https://{{ app.domain }}/attachments globalSettings__attachment__baseUrl: https://{{ app.publish.domain }}/attachments
globalSettings__dataProtection__directory: /etc/bitwarden/core/aspnet-dataprotection globalSettings__dataProtection__directory: /etc/bitwarden/core/aspnet-dataprotection
globalSettings__logDirectory: /etc/bitwarden/logs globalSettings__logDirectory: /etc/bitwarden/logs
globalSettings__licenseDirectory: /etc/bitwarden/core/licenses globalSettings__licenseDirectory: /etc/bitwarden/core/licenses

View File

@ -45,7 +45,7 @@ services:
USER_GID: "{{ _app_account.uid }}" USER_GID: "{{ _app_account.uid }}"
APP_NAME: ENP Version Control System APP_NAME: ENP Version Control System
RUN_MODE: prod RUN_MODE: prod
ROOT_URL: https://{{ app.domain }}/ ROOT_URL: https://{{ app.publish.domain }}/
DB_TYPE: sqlite3 DB_TYPE: sqlite3
DISABLE_REGISTRATION: "true" DISABLE_REGISTRATION: "true"
deploy: deploy:

View File

@ -103,6 +103,6 @@ services:
- cache - cache
- proxy - proxy
environment: environment:
VIKUNJA_API_URL: https://{{ app.domain }}/api/v1 VIKUNJA_API_URL: https://{{ app.publish.domain }}/api/v1
deploy: deploy:
replicas: 1 replicas: 1

View File

@ -18,7 +18,6 @@ skylab_services:
minecraft: minecraft:
user: autocraft user: autocraft
domain: mcs.enp.one
networks: networks:
ext: 192.168.102.0/24 ext: 192.168.102.0/24
volumes: volumes:
@ -27,6 +26,8 @@ skylab_services:
25565: 25565 25565: 25565
versions: versions:
server: 1.16.5 server: 1.16.5
publish:
domain: mcs.enp.one
settings: settings:
admins: admins:
- ScifiGeek42 - ScifiGeek42
@ -40,7 +41,6 @@ skylab_services:
gitea: gitea:
user: autotea user: autotea
domain: vcs.enp.one
networks: networks:
ext: 192.168.103.0/24 ext: 192.168.103.0/24
volumes: volumes:
@ -48,12 +48,14 @@ skylab_services:
ports: ports:
3000: 3000 3000: 3000
22: 2222 22: 2222
publish:
domain: vcs.enp.one
http: 3000
versions: versions:
server: 1.15.4 server: 1.15.4
bitwarden: bitwarden:
user: autowarden user: autowarden
domain: ssv.enp.one
networks: networks:
internal: 192.168.104.0/24 internal: 192.168.104.0/24
external: 192.168.105.0/24 external: 192.168.105.0/24
@ -87,6 +89,9 @@ skylab_services:
icons: 1.40.0 icons: 1.40.0
events: 1.40.0 events: 1.40.0
nginx: 1.40.0 nginx: 1.40.0
publish:
domain: ssv.enp.one
http: 8090
settings: settings:
certificatePassword: !vault | certificatePassword: !vault |
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
@ -138,7 +143,6 @@ skylab_services:
adguard: adguard:
user: autoguard user: autoguard
domain: adguard.en1.local
networks: networks:
ext: 192.168.108.0/24 ext: 192.168.108.0/24
volumes: volumes:
@ -149,6 +153,9 @@ skylab_services:
8064: 8084 8064: 8084
versions: versions:
server: v0.106.3 server: v0.106.3
publish:
domain: adguard.en1.local
http: 8064
settings: settings:
upstream: upstream:
- 1.1.1.1 - 1.1.1.1
@ -156,7 +163,6 @@ skylab_services:
plex: plex:
user: autoplex user: autoplex
domain: pms.enp.one
networks: networks:
ext: 192.168.101.0/24 ext: 192.168.101.0/24
volumes: volumes:
@ -172,6 +178,9 @@ skylab_services:
32414: 32414 32414: 32414
versions: versions:
server: latest server: latest
publish:
domain: pms.enp.one
http: 32400
settings: settings:
mediastore: mediastore.skylab.enp.one mediastore: mediastore.skylab.enp.one
internal_subnets: internal_subnets:
@ -183,7 +192,6 @@ skylab_services:
unifi: unifi:
user: autounifi user: autounifi
domain: unifi.en1.local
networks: networks:
ext: 192.168.100.0/24 ext: 192.168.100.0/24
volumes: volumes:
@ -198,10 +206,12 @@ skylab_services:
10001: 10001 10001: 10001
versions: versions:
wlc: "6.2" wlc: "6.2"
publish:
domain: unifi.en1.local
http: 8080
vikunja: vikunja:
user: autollama user: autollama
domain: org.enp.one
networks: networks:
ext: 192.168.107.0/24 ext: 192.168.107.0/24
volumes: volumes:
@ -216,6 +226,9 @@ skylab_services:
proxy: latest proxy: latest
api: 0.18.1 api: 0.18.1
web: 0.18.1 web: 0.18.1
publish:
domain: org.enp.one
http: 8087
settings: settings:
database_password: !vault | database_password: !vault |
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256