Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kadhonn committed Feb 5, 2024
1 parent 5a4348b commit ba6c050
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deploy/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
BOUDICCA_VERSION_TAG=latest
BOUDICCA_LETSENCRYPT_EMAIL=[email protected]
BOUDICCA_BASE_HOST=boudicca.events
BOUDICCA_REGISTRY=ghcr.io/boudicca-events


BOUDICCA_BASE_HOST=${BOUDICCA_BASE_HOST?error}
BOUDICCA_REGISTRY=${BOUDICCA_REGISTRY-docker.io/boudicca}

#all the actual image tags, consisting of the BOUDICCA_REGISTY + /eventdb(for example) + BOUDICCA_VERSION_TAG
BOUDICCA_EVENTDB_IMAGE=${BOUDICCA_REGISTRY?error}/eventdb:${BOUDICCA_VERSION_TAG?error}
BOUDICCA_SEARCH_IMAGE=${BOUDICCA_REGISTRY?error}/search:${BOUDICCA_VERSION_TAG?error}
BOUDICCA_ENRICHER_IMAGE=${BOUDICCA_REGISTRY?error}/enricher:${BOUDICCA_VERSION_TAG?error}
BOUDICCA_EVENTCOLLECTORS_IMAGE=${BOUDICCA_REGISTRY?error}/eventcollectors:${BOUDICCA_VERSION_TAG?error}
BOUDICCA_PUBLISHER_HTML_IMAGE=${BOUDICCA_REGISTRY?error}/publisher-event-html:${BOUDICCA_VERSION_TAG?error}
BOUDICCA_PUBLISHER_ICAL_IMAGE=${BOUDICCA_REGISTRY?error}/publisher-event-ical:${BOUDICCA_VERSION_TAG?error}
1 change: 1 addition & 0 deletions deploy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.env
Empty file added deploy/DEPLOY.md
Empty file.
91 changes: 91 additions & 0 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
version: '3'
services:
env_file:
- path: ./params.env
required: true
- path: ./.env
required: true
traefik:
image: traefik:v2.10
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.httpchallenge=true"
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.email=${BOUDICCA_LETSENCRYPT_EMAIL}"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
volumes:
- /letsencrypt
- /var/run/docker.sock:/var/run/docker.sock
restart: always
boudicca-eventdb:
image: ${BOUDICCA_EVENTDB_IMAGE}
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.boudicca-eventdb.rule=Host(`eventdb.${BOUDICCA_BASE_HOST}`)"
- "traefik.http.routers.boudicca-eventdb.entrypoints=websecure"
- "traefik.http.routers.boudicca-eventdb.tls.certresolver=myresolver"
volumes:
- /etc/boudicca/application-eventdb.properties:/opt/boudicca-eventdb/application.properties:ro
- /opt/boudicca/data/:/boudicca:rw
boudicca-search:
image: ${BOUDICCA_SEARCH_IMAGE}
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.boudicca-search.rule=Host(`search.${BOUDICCA_BASE_HOST}`)"
- "traefik.http.routers.boudicca-search.entrypoints=websecure"
- "traefik.http.routers.boudicca-search.tls.certresolver=myresolver"
volumes:
- /etc/boudicca/application-search.properties:/opt/boudicca-search/application.properties:ro
boudicca-enricher:
image: ${BOUDICCA_ENRICHER_IMAGE}
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.boudicca-enricher.rule=Host(`enricher.${BOUDICCA_BASE_HOST}`)"
- "traefik.http.routers.boudicca-enricher.entrypoints=websecure"
- "traefik.http.routers.boudicca-enricher.tls.certresolver=myresolver"
volumes:
- /etc/boudicca/application-enricher.properties:/opt/boudicca-enricher/application.properties:ro
- /etc/boudicca/googleCredentials.json:/opt/boudicca-enricher/googleCredentials.json:ro
- /opt/boudicca/data/:/boudicca:ro
boudicca-eventcollectors:
image: ${BOUDICCA_EVENTCOLLECTORS_IMAGE}
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.boudicca-eventcollectors.rule=Host(`collectors.${BOUDICCA_BASE_HOST}`)"
- "traefik.http.routers.boudicca-eventcollectors.entrypoints=websecure"
- "traefik.http.routers.boudicca-eventcollectors.tls.certresolver=myresolver"
volumes:
- /etc/boudicca/application-eventcollectors.properties:/opt/boudicca-eventcollectors/application.properties:ro
boudicca-html:
image: ${BOUDICCA_PUBLISHER_HTML_IMAGE}
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.boudicca-html.rule=Host(`${BOUDICCA_BASE_HOST}`) || Host(`www.${BOUDICCA_BASE_HOST}`)"
- "traefik.http.routers.boudicca-html.entrypoints=websecure"
- "traefik.http.routers.boudicca-html.tls.certresolver=myresolver"
volumes:
- /etc/boudicca/application-html.properties:/opt/boudicca-html/application.properties:ro
boudicca-ical:
image: ${BOUDICCA_PUBLISHER_ICAL_IMAGE}
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.boudicca-ical.rule=Host(`ical.${BOUDICCA_BASE_HOST}`)"
- "traefik.http.routers.boudicca-ical.entrypoints=websecure"
- "traefik.http.routers.boudicca-ical.tls.certresolver=myresolver"
volumes:
- /etc/boudicca/application-ical.properties:/opt/boudicca-ical/application.properties:ro
5 changes: 5 additions & 0 deletions deploy/property_files/application-enricher.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
boudicca.enricher.location.googleCredentialsPath=/opt/boudicca-enricher/googleCredentials.json
boudicca.enricher.location.spreadsheetId=1yYOE5gRR6gjNBim7hwEe3__fXoRAMtREkYbs-lsn7uM

boudicca.enricher.musicbrainz.data.path=/boudicca/artist_parsed.json.gz
boudicca.enricher.musicbrainz.index.path=/boudicca/artist.index.gz
3 changes: 3 additions & 0 deletions deploy/property_files/application-eventcollectors.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
boudicca.eventdb.url=https://eventdb.example.com
boudicca.ingest.auth=user:password
boudicca.enricher.url=https://enricher.example.com
3 changes: 3 additions & 0 deletions deploy/property_files/application-eventdb.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
boudicca.store.path=/boudicca/boudicca.store
boudicca.ingest.password=password
boudicca.entryKeyNames=name,startDate
2 changes: 2 additions & 0 deletions deploy/property_files/application-html.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
boudicca.search.url=https://search.example.com

2 changes: 2 additions & 0 deletions deploy/property_files/application-ical.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
boudicca.search.url=https://search.example.com

1 change: 1 addition & 0 deletions deploy/property_files/application-search.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
boudicca.eventdb.url=https://eventdb.example.com

0 comments on commit ba6c050

Please sign in to comment.