0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-30 22:34:01 -05:00
ghost/.devcontainer/compose.yml

39 lines
971 B
YAML
Raw Normal View History

# Base container and services for running Ghost
## Intended to be extended by another compose file
## e.g. docker compose -f base.compose.yml -f development.compose.yml up
## Does not include development dependencies, Ghost code, or any other dependencies
name: ghost-devcontainer
services:
ghost:
image: ghost-devcontainer
command: ["sleep", "infinity"]
build:
context: ../
dockerfile: .docker/Dockerfile
target: base-devcontainer
args:
WORKDIR: /workspaces/ghost
pull_policy: never
environment:
- DEVCONTAINER=true
tty: true
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
mysql:
extends:
file: ../compose.yml
service: mysql
container_name: ghost-devcontainer-mysql
redis:
extends:
file: ../compose.yml
service: redis
container_name: ghost-devcontainer-redis
volumes:
mysql-data:
redis-data: