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

41 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2024-07-18 11:24:17 -04:00
services:
ghost:
image: ghost:5
restart: always
ports:
2024-08-09 01:24:54 -04:00
- 2369:2368
2024-07-18 11:24:17 -04:00
expose:
2024-08-09 01:24:54 -04:00
- 2369
2024-07-18 11:24:17 -04:00
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
2024-08-09 01:24:54 -04:00
database__connection__host: gamesclub-db-1
2024-07-18 11:24:17 -04:00
database__connection__user: root
database__connection__password: ${DBPASS}
database__connection__database: ghost
2024-08-09 02:35:33 -04:00
VIRTUAL_HOST: "${DOMAIN}, www.${DOMAIN}"
2024-08-09 01:24:54 -04:00
VIRTUAL_PORT: 2369
2024-08-09 02:35:33 -04:00
LETSENCRYPT_HOST: "${DOMAIN}, www.${DOMAIN}"
2024-07-18 11:24:17 -04:00
LETSENCRYPT_EMAIL: ${EMAIL}
2024-08-09 01:24:54 -04:00
# url: http://0.0.0.0:2369 #Dev
2024-08-09 02:35:33 -04:00
url: "https://${DOMAIN}" #Prod
2024-07-18 11:24:17 -04:00
# 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)
2024-08-09 01:24:54 -04:00
# NODE_ENV: development
2024-07-18 11:24:17 -04:00
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