docker-compose.yml 817 Bytes
Newer Older
1
version: '3.7'
2 3 4 5 6 7

services:
  mc_frontend:
    build:
      context: .
      dockerfile: Dockerfile
8
    entrypoint: ng build --prod
9
    environment:
10
      - CHROME_BIN=google-chrome
11 12 13
    restart: always
    stdin_open: true
    tty: true
14 15 16
#    do not use mounted volume in combination with the node_modules directory being ignored in .dockerignore
#    volumes:
#      - .:/home/mc/mc_frontend
17
    volumes:
18
      - $PWD/www:/home/mc/mc_frontend/www
19
  nginx:
20
    command: nginx -g "daemon off;"
21 22 23 24 25 26 27 28 29 30
    image: nginx:alpine
    ports:
      - "8100:80"
    restart: always
    volumes:
      - $PWD/www:/usr/share/nginx/html
      - ./nginx.conf:/etc/nginx/nginx.conf
      - ./config.xml:/usr/share/nginx/html/config.xml
    depends_on:
      - mc_frontend
31 32
networks:
  default:
33 34
    external: true
    name: mc_backend_default