Skip to content

Commit

Permalink
changed port
Browse files Browse the repository at this point in the history
  • Loading branch information
f-bguiga committed Feb 12, 2024
1 parent 44a2c76 commit 253866a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 47 deletions.
2 changes: 1 addition & 1 deletion Dockerrun.aws.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"Ports": [
{
"ContainerPort": 3000
"ContainerPort": 80
}
]
}
50 changes: 4 additions & 46 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,6 @@
version: "3.8"

version: '3.8'
services:
api:
image: 600453241670.dkr.ecr.us-east-1.amazonaws.com/next-docker:${IMAGE_TAG:-latest}
platform: linux/amd64
restart: always
docker-httpd:
image: "600453241670.dkr.ecr.us-east-1.amazonaws.com/next-docker"
ports:
- 3000:3000
command:
- /bin/sh
- -c
- |
# Sync shared public files
rm -rf /app/shared/public/*
cp -r /app/public/* /app/shared/public
#
# You can add more commands before startup: compile assets, run migrations, ... if you have
# ...
#
# Start node app
node dist/main.js
environment:
- DATABASE_URL=${DATABASE_URL}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- JWT_EXPIRES_TIME=${JWT_EXPIRES_TIME}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_S3_BUCKET=${AWS_S3_BUCKET}
- AWS_REGION=${AWS_REGION}
- SENTRY_DNS=${SENTRY_DNS}
volumes:
- public_assets:/app/shared/public

nginx:
image: nginx:alpine
platform: linux/amd64
restart: always
ports:
- 80:80
depends_on:
- api
volumes:
- public_assets:/app/public
- ./nginx.conf:/etc/nginx/conf.d/default.conf

volumes:
public_assets:
- "80:80"

0 comments on commit 253866a

Please sign in to comment.