Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.1'
- services:
- ghost:
- image: ghost:latest
- restart: always
- ports:
- - 8080:2368
- environment:
- # see https://ghost.org/docs/config/#configuration-options
- database__client: mysql
- database__connection__host: db
- database__connection__user: root
- database__connection__password: <password-hidden>
- database__connection__database: ghost
- url: http://domain.com
- # 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
- labels:
- - traefik.enable=true
- - traefik.docker.network=proxy
- - traefik.http.routers.ghost.entrypoints=websecure
- - traefik.http.routers.ghost.rule=Host(`domain.com`)
- networks:
- - proxy
- - redaltghost
- db:
- image: mysql:8.0
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: <password-hidden>
- volumes:
- - ./mysql:/var/lib/mysql
- networks:
- - redaltghost
- networks:
- proxy:
- external: true
- redaltghost:
- external: true
Advertisement
Add Comment
Please, Sign In to add comment