Skip to content

Commit

Permalink
move files
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroMartinSteenstrup committed Apr 16, 2024
1 parent 9c2d1f7 commit 26eeb1b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
File renamed without changes.
12 changes: 7 additions & 5 deletions docker-compose.yml → portfolio/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@ services:
- .env
container_name: web
build:
context: ./portfolio
dockerfile: ../Dockerfile
context: .
dockerfile: Dockerfile
target: build
# comment out volumes when target is prod
volumes:
- './portfolio:/app'
# volumes:
# - './src:/app'
# comment out ports in prod, traffic only through proxy
ports:
- ${NODE_PORT}:${NODE_PORT}
networks:
- portfolio
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- database
database:
env_file:
- .env
Expand All @@ -43,7 +45,7 @@ services:
environment:
NGINX_ENVSUBST_TEMPLATE_SUFFIX: ".conf"
build:
context: ./portfolio/nginx
context: ./nginx
dockerfile: Dockerfile
ports:
- 8005:${NGINX_PORT}
Expand Down
12 changes: 6 additions & 6 deletions portfolio/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"pg": "^8.11.5"
},
"scripts": {
"build-db": ". ../../.env && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ./scripts/build-db.sql",
"clean-db": ". ../../.env && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ./scripts/clean-db.sql",
"build-db-local": ". ../../.env.local && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ../scripts/build-db.sql",
"clean-db-local": ". ../../.env.local && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ../scripts/clean-db.sql",
"build-db-docker": ". ../../.env.docker && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ./scripts/build-db.sql",
"clean-db-docker": ". ../../.env.docker && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ./scripts/clean-db.sql"
"build-db": ". ../.env && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ./scripts/build-db.sql",
"clean-db": ". ../.env && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ./scripts/clean-db.sql",
"build-db-local": ". ../.env.local && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ../scripts/build-db.sql",
"clean-db-local": ". ../.env.local && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ../scripts/clean-db.sql",
"build-db-docker": ". ../.env && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ../scripts/build-db.sql",
"clean-db-docker": ". ../.env && PGPASSWORD=$POSTGRES_PASSWORD psql -e -h localhost -d $POSTGRES_DB -U $POSTGRES_USER -p 5433 -f ../scripts/clean-db.sql"
},
"name": "portfolio",
"version": "1.0.0",
Expand Down

0 comments on commit 26eeb1b

Please sign in to comment.