Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.1'
- volumes:
- mysql-volume:
- ghost-volume
- services:
- mysql:
- image: mysql:5.7
- container_name: mysql
- volumes:
- - mysql-volume:/var/lib/mysql
- environment:
- MYSQL_ROOT_PASSWORD: root
- MYSQL_DATABASE: db
- MYSQL_USER: blog-user
- MYSQL_PASSWORD: supersecret
- ghost:
- build: ./ghost
- image: lvthillo/ghost:1.20.0
- container_name: ghost
- volumes:
- - ghost-volume:/var/lib/ghost
- restart: always
- ports:
- - 80:2368
- environment:
- database__client: mysql
- database__connection__host: mysql
- database__connection__user: blog-user
- database__connection__password: supersecret
- database__connection__database: db
- depends_on:
- - mysql
- entrypoint: ["wait-for-it.sh", "mysql", "--", "docker-entrypoint.sh"]
- command: ["node", "current/index.js"]
Add Comment
Please, Sign In to add comment