This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/ivorscott/go-delve-reload | |
cd go-delve-reload | |
git checkout starter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch remote", | |
"type": "go", | |
"request": "attach", | |
"mode": "remote", | |
"cwd": "${workspaceFolder}/api", | |
"remotePath": "/api", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOCKER_BUILDKIT=1 docker build --target dev --tag demo/api ./api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Use the node apline image as the base stage of a multi-stage routine | |
FROM node:13.7.0-alpine as base | |
# 2. Set the working directory to /client | |
WORKDIR /client | |
# 3. Copy both package.json and package-lock.json into /client in the image's filesystem | |
COPY package*.json ./ | |
# 4. Install only the production node_modules and clean up the cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOCKER_BUILDKIT=1 docker build --target dev --tag demo/client ./client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
traefik: | |
image: traefik:v2.1.2 | |
container_name: traefik | |
command: | |
- "--api.insecure=true" # Not For Production | |
- "--api.debug=true" | |
- "--log.level=DEBUG" | |
- "--providers.docker" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
volumes: | |
postgres-db: | |
external: true | |
networks: | |
postgres-net: | |
external: true | |
traefik-public: | |
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 client.local api.local debug.api.local traefik.api.local pgadmin.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
traefik: | |
image: traefik:v2.1.2 | |
command: | |
- "--api.insecure=true" # Not For Production | |
- "--api.debug=true" | |
- "--log.level=DEBUG" | |
- "--providers.docker" | |
- "--providers.docker.exposedbydefault=false" | |
- "--providers.docker.network=traefik-public" | |
- "--entrypoints.web.address=:80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)" | |
- "traefik.http.routers.http-catchall.entrypoints=web" | |
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https@docker" | |
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https" |