diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5a576f4 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +.PHONY: maps-service web validation +maps-service: + DOCKER_BUILDKIT=1 docker build . -f Containerfile -t maps-service \ + --secret id=netrc,src=/home/quat/.netrc +web: + docker build web -f web/Containerfile -t maps-service-web +validation: + docker build validation -f validation/Containerfile -t maps-service-validation diff --git a/compose.yaml b/compose.yaml index 976ed20..112d4d1 100644 --- a/compose.yaml +++ b/compose.yaml @@ -3,10 +3,6 @@ networks: maps-service-network: driver: bridge -secrets: - netrc: - file: /home/quat/.netrc - services: nats: image: docker.io/nats:latest @@ -16,11 +12,8 @@ services: - maps-service-network mapsservice: - build: - secrets: - - netrc - context: . - dockerfile: Containerfile + image: + maps-service container_name: mapsservice command: [ # debug @@ -46,18 +39,16 @@ services: - "8082:8082" web: - build: - context: web - dockerfile: Containerfile + image: + maps-service-web networks: - maps-service-network ports: - "3000:3000" validation: - build: - context: validation - dockerfile: Containerfile + image: + maps-service-validation container_name: validation environment: - RBXCOOKIE=RBXCOOKIE