docker: use images instead of build

This commit is contained in:
Quaternions 2024-12-13 17:20:07 -08:00
parent 4373ca4ba9
commit 090c794c24
2 changed files with 14 additions and 15 deletions

8
Makefile Normal file
View File

@ -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

View File

@ -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