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
|
- stuff
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 1000M
|
||||||
|
healthcheck:
|
||||||
|
test: command
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
|
@ -24,10 +30,10 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- STATUS=running
|
- STATUS=running
|
||||||
networks:
|
|
||||||
- stuff
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./mysql:/var/lib/mysql
|
- ./mysql:/var/lib/mysql
|
||||||
|
networks:
|
||||||
|
- stuff
|
||||||
secrets:
|
secrets:
|
||||||
- db_root_password
|
- db_root_password
|
||||||
- db_password
|
- db_password
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue