65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
services:
|
|
godash:
|
|
profiles: [build]
|
|
build:
|
|
context: .
|
|
dockerfile: ./docker/Dockerfile
|
|
args:
|
|
- GOLANG_VERSION=${GOLANG_VERSION}
|
|
- NODE_VERSION=${NODE_VERSION}
|
|
- ALPINE_VERSION=${ALPINE_VERSION}
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile_inline: |
|
|
ARG GOLANG_VERSION
|
|
FROM golang:${GOLANG_VERSION}-alpine
|
|
RUN apk update
|
|
RUN apk upgrade
|
|
RUN apk add tzdata
|
|
|
|
RUN go install github.com/cosmtrek/air@latest
|
|
COPY ./.air.toml .
|
|
|
|
WORKDIR /app
|
|
COPY ./go.mod .
|
|
COPY ./go.sum .
|
|
RUN go mod download
|
|
args:
|
|
- GOLANG_VERSION=${GOLANG_VERSION}
|
|
command: air -c .air.toml
|
|
environment:
|
|
- TZ=Europe/Berlin
|
|
- LOG_LEVEL=debug
|
|
- TITLE=DEV
|
|
- APP_VERSION=v0.0.1-dev
|
|
- BUILD_TIME=2023-04-05T20:48:07Z
|
|
ports:
|
|
- 4000:4000
|
|
volumes:
|
|
- .:/app/
|
|
|
|
frontend:
|
|
image: node:${NODE_VERSION}-alpine
|
|
working_dir: /app/web
|
|
command: yarn run tailwind:dev
|
|
tty: true
|
|
volumes:
|
|
- .:/app/
|
|
|
|
go:
|
|
profiles: [install]
|
|
image: golang:${GOLANG_VERSION}-alpine
|
|
working_dir: /app
|
|
entrypoint: go
|
|
volumes:
|
|
- .:/app/
|
|
|
|
yarn:
|
|
profiles: [install]
|
|
image: node:${NODE_VERSION}-alpine
|
|
working_dir: /app/web
|
|
entrypoint: yarn
|
|
volumes:
|
|
- .:/app/
|