Added resources and health check sections to Docker template
This commit is contained in:
parent
621e86af7e
commit
2cee1b9d7c
1 changed files with 8 additions and 2 deletions
|
|
@ -15,6 +15,12 @@ services:
|
|||
- stuff
|
||||
secrets:
|
||||
- db_password
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1000M
|
||||
healthcheck:
|
||||
test: command
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
|
|
@ -24,10 +30,10 @@ services:
|
|||
restart: always
|
||||
environment:
|
||||
- STATUS=running
|
||||
networks:
|
||||
- stuff
|
||||
volumes:
|
||||
- ./mysql:/var/lib/mysql
|
||||
networks:
|
||||
- stuff
|
||||
secrets:
|
||||
- db_root_password
|
||||
- db_password
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue