Browse Source

Updated docker deployment

master
jrtechs 4 days ago
parent
commit
9e75f5b33b
3 changed files with 19 additions and 1 deletions
  1. +2
    -1
      Dockerfile
  2. +12
    -0
      docker-compose.yml
  3. +5
    -0
      nginx/default.conf

+ 2
- 1
Dockerfile View File

@ -3,5 +3,6 @@
FROM nginx
COPY ./ /usr/share/nginx/html/
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 6666
EXPOSE 4001

+ 12
- 0
docker-compose.yml View File

@ -0,0 +1,12 @@
services:
portfolio:
build: .
ports:
- "4001:4001"
container_name: portfolio-website
networks:
- external-network
networks:
external-network:
external: true

+ 5
- 0
nginx/default.conf View File

@ -0,0 +1,5 @@
server {
listen 4001;
server_name default;
root /usr/share/nginx/html;
}

Loading…
Cancel
Save