2017-11-10 17:02:07 +01:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
|
|
|
|
foodsoft:
|
|
|
|
extends: foodsoft_worker
|
|
|
|
command: ./proc-start web
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
|
|
|
|
foodsoft_worker:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile-dev
|
|
|
|
command: ./proc-start worker
|
|
|
|
volumes:
|
|
|
|
- bundle:/home/app/bundle
|
|
|
|
- .:/home/app/src
|
|
|
|
environment:
|
|
|
|
- DATABASE_URL=mysql2://root:secret@mariadb/development?encoding=utf8
|
|
|
|
- REDIS_URL=redis://redis:6379
|
|
|
|
- QUEUE=foodsoft_notifier
|
|
|
|
- TEST_DATABASE_URL=mysql2://root:secret@mariadb/test?encoding=utf8
|
|
|
|
|
|
|
|
mailcatcher:
|
2018-11-13 15:06:29 +01:00
|
|
|
image: tophfr/mailcatcher
|
2017-11-10 17:02:07 +01:00
|
|
|
ports:
|
2018-11-13 15:06:29 +01:00
|
|
|
- "1080:80"
|
2017-11-10 17:02:07 +01:00
|
|
|
|
|
|
|
mariadb:
|
|
|
|
image: mariadb:10.1
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=secret
|
|
|
|
volumes:
|
|
|
|
- mariadb:/var/lib/mysql
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:3.2-alpine
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
bundle:
|
|
|
|
mariadb:
|