Skip to content

Commit

Permalink
Docker compose proposal for managing resources
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Oct 20, 2023
1 parent 7a1e18e commit 7c791b8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.3'

services:
db:
image: postgres:10
Expand Down Expand Up @@ -41,6 +39,10 @@ services:
- push
#- mqtt
restart: always
deploy:
resources:
limits:
memory: 2gb
volumes:
- "./:/app"
#command: rails server -p 3000 -b '0.0.0.0'
Expand Down Expand Up @@ -150,6 +152,11 @@ services:
build:
context: ./scripts/
dockerfile: Dockerfile-kairos
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
window: 120s
ports:
- 8080:8080
- 4242:4242 #telnet
Expand Down

0 comments on commit 7c791b8

Please sign in to comment.