Ignore .env, Docker files, and node_modules
This commit is contained in:
parent
554a98dd09
commit
5df2f3d93c
14
.gitignore
vendored
14
.gitignore
vendored
@ -1,6 +1,20 @@
|
|||||||
# Ignore server environment file
|
# Ignore server environment file
|
||||||
/server/.env
|
/server/.env
|
||||||
|
|
||||||
|
# Ignore node modules
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Ignore Docker files
|
||||||
|
docker-compose.yaml
|
||||||
|
/server/Dockerfile
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
# Ignore server environment file
|
||||||
|
/server/.env
|
||||||
|
|
||||||
# Ignore node_modules
|
# Ignore node_modules
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
services:
|
|
||||||
backend:
|
|
||||||
build: ./server
|
|
||||||
container_name: bookingSys
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
volumes:
|
|
||||||
- ./public:/app/public
|
|
||||||
environment:
|
|
||||||
- PGUSER=aleks
|
|
||||||
- PGPASSWORD=moni3niki
|
|
||||||
- PGDATABASE=bookingsystem
|
|
||||||
- PGHOST=db
|
|
||||||
- PGPORT=5432
|
|
||||||
networks:
|
|
||||||
- booking_system_net
|
|
||||||
|
|
||||||
db:
|
|
||||||
image: postgres:15
|
|
||||||
container_name: bookingsys_db
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: aleks
|
|
||||||
POSTGRES_PASSWORD: moni3niki
|
|
||||||
POSTGRES_DB: bookingsystem
|
|
||||||
ports:
|
|
||||||
- "5433:5432"
|
|
||||||
volumes:
|
|
||||||
- db_data:/var/lib/postgresql/data
|
|
||||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
||||||
networks:
|
|
||||||
- booking_system_net
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
db_data:
|
|
||||||
|
|
||||||
networks:
|
|
||||||
booking_system_net:
|
|
||||||
external: true
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
FROM node:18
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY package*.json ./
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
EXPOSE 3000
|
|
||||||
CMD ["npm", "start"]
|
|
||||||
Loading…
Reference in New Issue
Block a user