Skip to content

Commit

Permalink
fix(docker): config in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
kostaspt committed Jan 9, 2022
1 parent bd1d385 commit ab33653
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ version: "3.8"
services:
proxy:
deploy:
mode: global
placement:
constraints: [node.role == manager]
mode: replicated
replicas: 1
resources:
limits:
memory: 32M
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ services:
image: haproxy:2.4-alpine
restart: unless-stopped
ports:
- 80:80
- target: 80
published: 80
protocol: tcp
mode: host
volumes:
- ./docker/proxy:/usr/local/etc/haproxy:ro
environment:
Expand Down

0 comments on commit ab33653

Please sign in to comment.