mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-12 00:09:32 +00:00
Upgrade to mysql 5.7, tag memcached 1.5, and check for PID 1 on workers instead of ps. ps generates apparmor errors in the docker daemon.
This commit is contained in:
@@ -22,7 +22,7 @@ services:
|
|||||||
test: curl --insecure https://127.0.0.1/
|
test: curl --insecure https://127.0.0.1/
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql:5.5
|
image: mysql:5.7
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -42,12 +42,12 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ./prod.env
|
- ./prod.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ps -ef | grep rake | grep ruby
|
test: kill -0 1
|
||||||
command: bundle exec rake jobs:work RAILS_ENV=production
|
command: bundle exec rake jobs:work RAILS_ENV=production
|
||||||
|
|
||||||
|
|
||||||
memcached:
|
memcached:
|
||||||
image: memcached
|
image: memcached:1.5
|
||||||
mem_limit: 64000000
|
mem_limit: 64000000
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ services:
|
|||||||
test: curl --insecure https://127.0.0.1/
|
test: curl --insecure https://127.0.0.1/
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql:5.5
|
image: mysql:5.7
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -82,7 +82,7 @@ services:
|
|||||||
caching:
|
caching:
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ps -ef | grep rake | grep ruby
|
test: kill -0 1
|
||||||
command: bundle exec rake jobs:work RAILS_ENV=production
|
command: bundle exec rake jobs:work RAILS_ENV=production
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
@@ -94,7 +94,7 @@ services:
|
|||||||
memory: 256M
|
memory: 256M
|
||||||
|
|
||||||
memcached:
|
memcached:
|
||||||
image: memcached
|
image: memcached:1.5
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|||||||
Reference in New Issue
Block a user