mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:55:33 +00:00
chore: update docker-compose.yml
This commit is contained in:
parent
d5d0e1036b
commit
95640ec57c
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
DB_MYSQL_PORT=3306
|
DB_MYSQL_PORT=3306
|
||||||
DB_POSTGRES_PORT=5432
|
DB_POSTGRES_PORT=5432
|
||||||
API_PORT=23000
|
|
||||||
VERDACCIO_PORT=4873
|
VERDACCIO_PORT=4873
|
||||||
|
APP_PORT=23001
|
||||||
|
|
||||||
########## NOCOBASE ENV ##########
|
########## NOCOBASE ENV ##########
|
||||||
|
|
||||||
|
10
Dockerfile
10
Dockerfile
@ -1,13 +1,15 @@
|
|||||||
FROM node:12.20.0-stretch
|
FROM node:12.20.0-stretch
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . /app
|
# COPY . /app
|
||||||
RUN ls -a
|
RUN ls -a
|
||||||
|
|
||||||
RUN npm config set registry https://registry.npm.taobao.org
|
RUN npm config set registry https://registry.npm.taobao.org
|
||||||
RUN npm install
|
RUN yarn config set registry https://registry.npm.taobao.org
|
||||||
RUN npm run bootstrap
|
|
||||||
RUN npm run build
|
# RUN npm install
|
||||||
|
# RUN npm run bootstrap
|
||||||
|
# RUN npm run build
|
||||||
|
|
||||||
# # Install app dependencies
|
# # Install app dependencies
|
||||||
# ENV NPM_CONFIG_LOGLEVEL warn
|
# ENV NPM_CONFIG_LOGLEVEL warn
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
networks:
|
networks:
|
||||||
node-network:
|
nocobase:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
services:
|
services:
|
||||||
verdaccio:
|
verdaccio:
|
||||||
image: verdaccio/verdaccio
|
image: verdaccio/verdaccio
|
||||||
networks:
|
networks:
|
||||||
- node-network
|
- nocobase
|
||||||
environment:
|
environment:
|
||||||
VERDACCIO_PORT: ${VERDACCIO_PORT}
|
VERDACCIO_PORT: ${VERDACCIO_PORT}
|
||||||
restart: always
|
restart: always
|
||||||
@ -23,16 +23,31 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${DB_MYSQL_PORT}:3306"
|
- "${DB_MYSQL_PORT}:3306"
|
||||||
networks:
|
networks:
|
||||||
- node-network
|
- nocobase
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:10
|
image: postgres:10
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "${DB_POSTGRES_PORT}:5432"
|
- "${DB_POSTGRES_PORT}:5432"
|
||||||
networks:
|
networks:
|
||||||
- node-network
|
- nocobase
|
||||||
command: postgres -c wal_level=logical
|
command: postgres -c wal_level=logical
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ${DB_USER}
|
POSTGRES_USER: ${DB_USER}
|
||||||
POSTGRES_DB: ${DB_DATABASE}
|
POSTGRES_DB: ${DB_DATABASE}
|
||||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
|
nocobase:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
networks:
|
||||||
|
- nocobase
|
||||||
|
command: [ "yarn", "start" ]
|
||||||
|
working_dir: /app
|
||||||
|
env_file: ./.env
|
||||||
|
volumes:
|
||||||
|
- ./:/app
|
||||||
|
expose:
|
||||||
|
- 8000
|
||||||
|
ports:
|
||||||
|
- "${APP_PORT}:8000"
|
@ -45,7 +45,7 @@
|
|||||||
"react-image-lightbox": "^5.1.1",
|
"react-image-lightbox": "^5.1.1",
|
||||||
"react-sortable-hoc": "^1.11.0",
|
"react-sortable-hoc": "^1.11.0",
|
||||||
"react-to-print": "^2.12.3",
|
"react-to-print": "^2.12.3",
|
||||||
"styled-components": "^5.2.1",
|
"styled-components": "^4.1.1",
|
||||||
"umi": "^3.2.23",
|
"umi": "^3.2.23",
|
||||||
"yorkie": "^2.0.0"
|
"yorkie": "^2.0.0"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user