2022-03-06 17:29:20 +08:00
|
|
|
version: "3"
|
|
|
|
networks:
|
|
|
|
nocobase:
|
|
|
|
driver: bridge
|
|
|
|
services:
|
2022-04-17 10:00:42 +08:00
|
|
|
verdaccio:
|
|
|
|
image: verdaccio/verdaccio
|
|
|
|
networks:
|
|
|
|
- nocobase
|
|
|
|
environment:
|
|
|
|
VERDACCIO_PORT: ${VERDACCIO_PORT}
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "${VERDACCIO_PORT}:${VERDACCIO_PORT}"
|
2022-04-29 00:09:40 +08:00
|
|
|
mysql:
|
|
|
|
image: mysql:8
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: ${DB_DATABASE}
|
|
|
|
MYSQL_USER: ${DB_USER}
|
|
|
|
MYSQL_PASSWORD: ${DB_PASSWORD}
|
|
|
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
2022-03-06 17:29:20 +08:00
|
|
|
restart: always
|
2022-04-29 00:09:40 +08:00
|
|
|
ports:
|
|
|
|
- "${DB_MYSQL_PORT}:3306"
|
2022-03-06 17:29:20 +08:00
|
|
|
networks:
|
|
|
|
- nocobase
|
|
|
|
postgres:
|
|
|
|
image: postgres:10
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- nocobase
|
|
|
|
command: postgres -c wal_level=logical
|
2022-04-29 00:09:40 +08:00
|
|
|
ports:
|
|
|
|
- "${DB_POSTGRES_PORT}:5432"
|
2022-03-06 17:29:20 +08:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: ${DB_USER}
|
|
|
|
POSTGRES_DB: ${DB_DATABASE}
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
2022-04-29 00:09:40 +08:00
|
|
|
adminer:
|
|
|
|
image: nocobase/adminer
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- nocobase
|
|
|
|
ports:
|
|
|
|
- ${ADMINER_PORT}:8080
|
|
|
|
volumes:
|
|
|
|
- ./:/var/www/app
|
2022-03-06 17:29:20 +08:00
|
|
|
nocobase:
|
|
|
|
build:
|
|
|
|
context: .
|
2022-04-29 10:55:01 +08:00
|
|
|
dockerfile: ./docker/node/Dockerfile
|
2022-03-06 17:29:20 +08:00
|
|
|
networks:
|
|
|
|
- nocobase
|
2022-05-24 22:55:09 +08:00
|
|
|
command: [ "yarn", "start" ]
|
2022-03-06 17:29:20 +08:00
|
|
|
working_dir: /app
|
|
|
|
env_file: ./.env
|
|
|
|
volumes:
|
|
|
|
- ./:/app
|
|
|
|
expose:
|
2022-05-19 00:40:55 +08:00
|
|
|
- ${APP_PORT}
|
2022-03-06 17:29:20 +08:00
|
|
|
ports:
|
2022-05-19 00:40:55 +08:00
|
|
|
- "${APP_PORT}:${APP_PORT}"
|