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: maps-service-network:
driver: bridge driver: bridge
secrets:
netrc:
file: /home/quat/.netrc
services: services:
nats: nats:
image: docker.io/nats:latest image: docker.io/nats:latest
@ -16,11 +12,8 @@ services:
- maps-service-network - maps-service-network
mapsservice: mapsservice:
build: image:
secrets: maps-service
- netrc
context: .
dockerfile: Containerfile
container_name: mapsservice container_name: mapsservice
command: [ command: [
# debug # debug
@ -46,18 +39,16 @@ services:
- "8082:8082" - "8082:8082"
web: web:
build: image:
context: web maps-service-web
dockerfile: Containerfile
networks: networks:
- maps-service-network - maps-service-network
ports: ports:
- "3000:3000" - "3000:3000"
validation: validation:
build: image:
context: validation maps-service-validation
dockerfile: Containerfile
container_name: validation container_name: validation
environment: environment:
- RBXCOOKIE=RBXCOOKIE - RBXCOOKIE=RBXCOOKIE