mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-21 15:53:21 +01:00
487e098b96
* Upgrade PG to latest stable version alpine
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
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
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile-dev
|
|
image: mediacms/mediacms-dev:latest
|
|
environment:
|
|
ADMIN_USER: 'admin'
|
|
ADMIN_PASSWORD: 'admin'
|
|
ADMIN_EMAIL: 'admin@localhost'
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./:/home/mediacms.io/mediacms/
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
db:
|
|
condition: service_healthy
|
|
db:
|
|
image: postgres:15.2-alpine
|
|
volumes:
|
|
- ../postgres_data:/var/lib/postgresql/data/
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: mediacms
|
|
POSTGRES_PASSWORD: mediacms
|
|
POSTGRES_DB: mediacms
|
|
TZ: Europe/London
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
redis:
|
|
image: "redis:alpine"
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|