version: "3"
networks:
nocobase:
driver: bridge
services:
verdaccio:
image: verdaccio/verdaccio
- nocobase
environment:
VERDACCIO_PORT: ${VERDACCIO_PORT}
restart: always
ports:
- "${VERDACCIO_PORT}:${VERDACCIO_PORT}"
mysql:
image: mysql:8
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
- "${DB_MYSQL_PORT}:3306"
postgres:
image: postgres:latest
command: postgres -c wal_level=logical
- "${DB_POSTGRES_PORT}:5432"
volumes:
- ./storage/db/postgres/backups:/backups
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_PASSWORD: ${DB_PASSWORD}
adminer:
image: nocobase/adminer
- ${ADMINER_PORT}:8080
- ./:/var/www/app
image: node:16-stretch-slim
command: [ "yarn", "start" ]
working_dir: /app
env_file: ./.env
- ./:/app
expose:
- ${APP_PORT}
- "${APP_PORT}:${APP_PORT}"