advent-of-code

Entries to advent of code, multiple years
git clone git://git.finwo.net/misc/advent-of-code
Log | Files | Refs

docker-compose.yml (1075B)


      1 version: "3.9"
      2 
      3 services:
      4 
      5   nginx-proxy:
      6     image: nginxproxy/nginx-proxy:alpine
      7     restart: always
      8     ports:
      9       - 80:80
     10     volumes:
     11       - /var/run/docker.sock:/tmp/docker.sock:ro
     12     networks:
     13       - webproxy
     14 
     15   web:
     16     build:
     17       context: web
     18     depends_on:
     19       - api
     20       - nginx-proxy
     21     volumes:
     22       - ./web/dist:/srv/www
     23     networks:
     24       - webproxy
     25     ports:
     26       - 3000:3000
     27     environment:
     28       - PORT=5000
     29       - VIRTUAL_PORT=5000
     30       - VIRTUAL_HOST=web.docker
     31 
     32   api:
     33     build:
     34       context: api
     35     command: npm run start:dev
     36     depends_on:
     37       - nginx-proxy
     38     volumes:
     39       - ./api:/app
     40     networks:
     41       - webproxy
     42       - default
     43     ports:
     44       - 3010:5000
     45     environment:
     46       - PORT=5000
     47       - VIRTUAL_PORT=5000
     48       - VIRTUAL_HOST=api.docker
     49 
     50   # adminer:
     51   #   image: finwo/adminer
     52   #   restart: always
     53   #   ports:
     54   #     - 4000:8080
     55   #   networks:
     56   #     - webproxy
     57   #     - default
     58   #   environment:
     59   #     - VIRTUAL_PORT=8080
     60   #     - VIRTUAL_HOST=adminer.docker
     61 
     62 networks:
     63   default:
     64   webproxy: