lab3: second tiny fix
This commit is contained in:
+7
-2
@@ -47,6 +47,11 @@ services:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
restart: "no"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.5"
|
||||
memory: 256M
|
||||
|
||||
api:
|
||||
build: .
|
||||
@@ -77,9 +82,9 @@ services:
|
||||
memory: 256M
|
||||
|
||||
lb:
|
||||
image: nginx:1.27.5-alpine
|
||||
image: haproxy:3.2.6-alpine
|
||||
volumes:
|
||||
- ./infra/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./infra/haproxy-compose.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
|
||||
networks: [front]
|
||||
ports:
|
||||
- "127.0.0.1:${APP_PORT:-8080}:8080"
|
||||
|
||||
Reference in New Issue
Block a user