media-server-docker-compose/sites/botc/docker-compose.yml

42 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2024-08-15 01:20:30 -04:00
services:
ghost:
image: ghost:5
restart: always
ports:
- 2371:2368
expose:
- 2371
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
2024-08-15 02:05:16 -04:00
database__connection__host: botc-db-1
2024-08-15 01:20:30 -04:00
database__connection__user: root
database__connection__password: ${DBPASS}
database__connection__database: ghost
# VIRTUAL_HOST: "www.${DOMAIN}, ${DOMAIN}"
VIRTUAL_HOST: "www.phillybotc.com, phillybotc.com"
VIRTUAL_PORT: 2371
# LETSENCRYPT_HOST: "${DOMAIN}, www.${DOMAIN}"
LETSENCRYPT_HOST: "www.phillybotc.com, phillybotc.com"
LETSENCRYPT_EMAIL: ${EMAIL}
# url: http://0.0.0.0:2371 #Dev
url: "https://phillybotc.com" #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: production
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:
2024-08-15 01:59:58 -04:00
- ./data:/var/lib/mysql
2024-08-15 01:20:30 -04:00
volumes:
db:
networks:
default:
name: nginx-proxy
external: true