moving and making new sites

This commit is contained in:
Brodin 2024-08-09 01:24:54 -04:00
parent 39afcb5706
commit b9eeffbe42
16 changed files with 103 additions and 128 deletions

View File

@ -1,65 +0,0 @@
# Use postgres/example user/password credentials
version: '3.8'
volumes:
database-data:
networks:
stack:
name: stack
external: false
services:
database:
container_name: database
image: postgres
restart: always
volumes:
- database-data:/var/lib/postgresql/data/
env_file: .env
networks:
- stack
calcom:
image: calcom.docker.scarf.sh/calcom/cal.com
build:
context: .
dockerfile: Dockerfile
args:
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
NEXT_PUBLIC_API_V2_URL: ${NEXT_PUBLIC_API_V2_URL}
NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT}
CALCOM_TELEMETRY_DISABLED: ${CALCOM_TELEMETRY_DISABLED}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
DATABASE_URL: ${DATABASE_URL}
DATABASE_DIRECT_URL: ${DATABASE_URL}
network: stack
restart: always
networks:
- stack
ports:
- 3000:3000
env_file: .env
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
- DATABASE_DIRECT_URL=${DATABASE_URL}
depends_on:
- database
# Optional use of Prisma Studio. In production, comment out or remove the section below to prevent unwanted access to your database.
studio:
image: calcom.docker.scarf.sh/calcom/cal.com
restart: always
networks:
- stack
ports:
- 5555:5555
env_file: .env
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
- DATABASE_DIRECT_URL=${DATABASE_URL}
depends_on:
- database
command:
- npx
- prisma
- studio
# END SECTION: Optional use of Prisma Studio.

View File

@ -1,31 +0,0 @@
{
"url": "http://localhost:2368",
"server": {
"port": 2368,
"host": "::"
},
"mail": {
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.mailgun.org",
"port": 587,
"secure": false,
"auth": {
"user": "",
"pass": ""
}
}
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/lib/ghost/content"
}
}

View File

@ -1,30 +0,0 @@
{
"url": "http://localhost:2368",
"server": {
"port": 2368,
"host": "::"
},
"mail": {
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.mailgun.org",
"port": 587,
"secure": false,
"auth": {
"user": "",
"pass": ""
}
}
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/lib/ghost/content"
}
}

View File

@ -26,9 +26,9 @@ services:
- PUID=${UID}
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=ubooquity.${DOMAIN}
- VIRTUAL_HOST=comics.${DOMAIN}
- VIRTUAL_PORT=2202
- LETSENCRYPT_HOST=ubooquity.${DOMAIN}
- LETSENCRYPT_HOST=comics.${DOMAIN}
- LETSENCRYPT_EMAIL= ${EMAIL}
# - MAXMEM= #optional
volumes:

View File

@ -0,0 +1,5 @@
DOMAIN=example.com
DBPASS=password
EMAIL=example@mail.com
DOMAIN=example.com

3
sites/gamesclub/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
db/*
content/*
config.*.json

View File

@ -0,0 +1,43 @@
services:
ghost:
image: ghost:5
restart: always
ports:
- 2369:2368
expose:
- 2369
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: gamesclub-db-1
database__connection__user: root
database__connection__password: ${DBPASS}
database__connection__database: ghost
# VIRTUAL_HOST: "www.${DOMAIN}, ${DOMAIN}"
VIRTUAL_HOST: "club.${DOMAIN}"
VIRTUAL_PORT: 2369
# LETSENCRYPT_HOST: "${DOMAIN}, www.${DOMAIN}"
LETSENCRYPT_HOST: "club.${DOMAIN}"
LETSENCRYPT_EMAIL: ${EMAIL}
# url: http://0.0.0.0:2369 #Dev
url: "https://club.${DOMAIN}" #Prod
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
# NODE_ENV: development
volumes:
- ./content:/var/lib/ghost/content
# - ./themes:/var/lib/ghost/current/content/themes:rw
db:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: ghost
MYSQL_ROOT_PASSWORD: ${DBPASS}
volumes:
- db:/var/lib/mysql
volumes:
db:
networks:
default:
name: nginx-proxy
external: true

View File

@ -0,0 +1,5 @@
DOMAIN=example.com
DBPASS=password
EMAIL=example@mail.com
DOMAIN=example.com

3
sites/photos/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
db/*
content/*
config.*.json

View File

@ -0,0 +1,42 @@
services:
ghost:
image: ghost:5
restart: always
ports:
- 2370:2368
expose:
- 2370
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: photos-db-1
database__connection__user: root
database__connection__password: ${DBPASS}
database__connection__database: ghost
# VIRTUAL_HOST: "www.${DOMAIN}, ${DOMAIN}"
VIRTUAL_HOST: "photos.${DOMAIN}"
VIRTUAL_PORT: 2370
# LETSENCRYPT_HOST: "${DOMAIN}, www.${DOMAIN}"
LETSENCRYPT_HOST: "photos.${DOMAIN}"
LETSENCRYPT_EMAIL: ${EMAIL}
# url: http://0.0.0.0:2370 #Dev
url: "https://photos.${DOMAIN}" #Prod
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
# NODE_ENV: development
volumes:
- ./content:/var/lib/ghost/content
# - ./themes:/var/lib/ghost/current/content/themes:rw
db:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: ghost
MYSQL_ROOT_PASSWORD: ${DBPASS}
volumes:
- db:/var/lib/mysql
volumes:
db:
networks:
default:
name: nginx-proxy
external: true