1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-30 19:22:21 +00:00

Updating to compose api version 3.3

This commit is contained in:
2018-07-11 13:23:17 +00:00
parent cdf42b4434
commit cd94b9901d
4 changed files with 154 additions and 116 deletions

View File

@@ -1,36 +1,54 @@
app:
extends:
file: docker-compose-common.yml
service: app
image: wrestlingdev-prod
links:
- db
restart: always
env_file:
- ./prod.env
db:
extends:
file: docker-compose-common.yml
service: db
restart: always
env_file:
- ./prod.env
worker:
extends:
file: docker-compose-common.yml
service: worker
image: wrestlingdev-prod
links:
- db
restart: always
env_file:
- ./prod.env
healthcheck:
test: ps -ef | grep rake | grep ruby
command: bundle exec rake jobs:work RAILS_ENV=production
version: "3.3"
networks:
database:
caching:
memcached:
extends:
file: docker-compose-common.yml
service: memcached
restart: always
volumes:
mysql:
services:
app:
image: wrestlingdev-prod
ports:
- "80:80"
- "443:443"
networks:
database:
caching:
restart: always
env_file:
- ./prod.env
healthcheck:
test: curl --insecure https://127.0.0.1/
db:
image: mysql:5.5
ports:
- "3306:3306"
volumes:
- mysql:/var/lib/mysql
restart: always
env_file:
- ./prod.env
networks:
database:
worker:
image: wrestlingdev-prod
networks:
database:
caching:
restart: always
env_file:
- ./prod.env
healthcheck:
test: ps -ef | grep rake | grep ruby
command: bundle exec rake jobs:work RAILS_ENV=production
memcached:
image: memcached
mem_limit: 64000000
restart: always
networks:
caching: