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

40 lines
1.2 KiB
YAML
Raw Normal View History

2024-09-23 21:25:54 -04:00
services:
ghost:
image: ghost:5
container_name: rittenhop-ghost
restart: always
ports:
- ${PORT}:2377
expose:
- ${PORT}
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: rittenhop-db
database__connection__user: root
database__connection__password: ${DBPASS}
database__connection__database: rittenhop
VIRTUAL_HOST: "${SITE}"
VIRTUAL_PORT: ${PORT}
LETSENCRYPT_HOST: "${SITE}"
LETSENCRYPT_EMAIL: ${EMAIL}
# url: http://0.0.0.0:${PORT} #Dev
url: "https://${SITE}" #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
container_name: rittenhop-db
restart: always
environment:
MYSQL_DATABASE: rittenhop
MYSQL_ROOT_PASSWORD: ${DBPASS}
volumes:
- ./db:/var/lib/mysql
networks:
default:
name: nginx-proxy
external: true