HOANGLAOTA 1 year ago
commit 272d39a4ca
  1. 2
      Dockerfile
  2. 35
      docker-compose.yml.example

@ -1,4 +1,4 @@
FROM node:14 FROM node:16
# Set working directory # Set working directory
WORKDIR /var/www WORKDIR /var/www

@ -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
Loading…
Cancel
Save