diff --git a/Dockerfile b/Dockerfile index 36f8df5..7b401e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14 +FROM node:16 # Set working directory WORKDIR /var/www diff --git a/docker-compose.yml.example b/docker-compose.yml.example new file mode 100644 index 0000000..cba7f57 --- /dev/null +++ b/docker-compose.yml.example @@ -0,0 +1,35 @@ +version: '3.5' +services: + #Nginx Service + agent-landingpage-nginx: + image: nginx:alpine + container_name: agent-landingpage-nginx + restart: unless-stopped + tty: true + ports: + - "19995:80" + - "19915:443" + volumes: + - ./:/var/www + - ./nginx/conf.d:/etc/nginx/conf.d + networks: + - app-network + #Node Service + agent-landingpage-web: + image: node:16 + container_name: agent-landingpage-web + build: + context: . + dockerfile: ./Dockerfile + restart: unless-stopped + tty: true + working_dir: /var/www + volumes: + - ./:/var/www + networks: + - app-network +#Docker Networks +networks: + app-network: + name: gk.internal + external: true