2024-10-24 13:15:08 -05:00
|
|
|
# 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
|
2024-11-18 17:15:11 -05:00
|
|
|
name: ghost-devcontainer
|
2024-10-24 13:15:08 -05:00
|
|
|
services:
|
|
|
|
ghost:
|
2024-11-18 17:15:11 -05:00
|
|
|
image: ghost-devcontainer
|
|
|
|
command: ["sleep", "infinity"]
|
2024-10-24 13:15:08 -05:00
|
|
|
build:
|
2024-11-18 17:15:11 -05:00
|
|
|
context: ../
|
2024-11-19 16:15:06 -05:00
|
|
|
dockerfile: .docker/Dockerfile
|
2024-11-18 17:15:11 -05:00
|
|
|
target: base-devcontainer
|
2024-12-17 15:57:02 -05:00
|
|
|
args:
|
|
|
|
WORKDIR: /workspaces/ghost
|
2024-10-24 13:15:08 -05:00
|
|
|
pull_policy: never
|
2024-11-18 17:15:11 -05:00
|
|
|
environment:
|
|
|
|
- DEVCONTAINER=true
|
2024-10-24 13:15:08 -05:00
|
|
|
tty: true
|
|
|
|
depends_on:
|
|
|
|
mysql:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
mysql:
|
2024-12-17 15:57:02 -05:00
|
|
|
extends:
|
|
|
|
file: ../compose.yml
|
|
|
|
service: mysql
|
|
|
|
container_name: ghost-devcontainer-mysql
|
2024-10-24 13:15:08 -05:00
|
|
|
redis:
|
2024-12-17 15:57:02 -05:00
|
|
|
extends:
|
|
|
|
file: ../compose.yml
|
|
|
|
service: redis
|
|
|
|
container_name: ghost-devcontainer-redis
|
2024-10-24 13:15:08 -05:00
|
|
|
|
|
|
|
volumes:
|
2024-12-17 15:57:02 -05:00
|
|
|
mysql-data:
|
2024-12-17 16:14:21 -05:00
|
|
|
redis-data:
|