2021-07-01 17:05:43 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
2021-07-11 17:01:34 +02:00
|
|
|
frontend:
|
|
|
|
image: node:14
|
|
|
|
volumes:
|
|
|
|
- ${PWD}/frontend:/home/mediacms.io/mediacms/frontend/
|
|
|
|
working_dir: /home/mediacms.io/mediacms/frontend/
|
|
|
|
command: bash -c "npm install && npm run start"
|
|
|
|
env_file:
|
|
|
|
- ${PWD}/frontend/.env
|
|
|
|
ports:
|
|
|
|
- "8088:8088"
|
|
|
|
depends_on:
|
|
|
|
- web
|
2021-07-01 17:05:43 +02:00
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile-dev
|
|
|
|
image: mediacms/mediacms-dev:latest
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/mediacms.io/mediacms/
|
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
db:
|
2021-10-12 20:07:45 +02:00
|
|
|
image: postgres:13
|
2021-07-01 17:05:43 +02:00
|
|
|
volumes:
|
|
|
|
- ../postgres_data:/var/lib/postgresql/data/
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: mediacms
|
|
|
|
POSTGRES_PASSWORD: mediacms
|
|
|
|
POSTGRES_DB: mediacms
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U mediacms"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
redis:
|
|
|
|
image: "redis:alpine"
|
|
|
|
restart: always
|
|
|
|
healthcheck:
|
2021-07-11 17:01:34 +02:00
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
2021-07-01 17:05:43 +02:00
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
2021-07-11 17:01:34 +02:00
|
|
|
retries: 3
|