2021-06-04 17:49:19 +02:00
|
|
|
version: '2'
|
2017-11-10 17:02:07 +01:00
|
|
|
services:
|
|
|
|
|
|
|
|
foodsoft:
|
|
|
|
extends: foodsoft_worker
|
|
|
|
command: ./proc-start web
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
2023-10-18 23:25:14 +02:00
|
|
|
depends_on:
|
|
|
|
- mariadb
|
2017-11-10 17:02:07 +01:00
|
|
|
|
|
|
|
foodsoft_worker:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile-dev
|
|
|
|
command: ./proc-start worker
|
|
|
|
volumes:
|
2021-03-02 19:18:57 +01:00
|
|
|
- bundle:/usr/local/bundle
|
|
|
|
- .:/app
|
2017-11-10 17:02:07 +01:00
|
|
|
environment:
|
2021-03-02 19:18:57 +01:00
|
|
|
- DATABASE_URL=mysql2://root:secret@mariadb/development?encoding=utf8mb4
|
2017-11-10 17:02:07 +01:00
|
|
|
- REDIS_URL=redis://redis:6379
|
2021-03-02 19:18:57 +01:00
|
|
|
- TEST_DATABASE_URL=mysql2://root:secret@mariadb/test?encoding=utf8mb4
|
2020-07-27 17:39:56 +02:00
|
|
|
- DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL=true
|
2021-03-02 19:18:57 +01:00
|
|
|
- MAILCATCHER_ADDRESS=mailcatcher
|
|
|
|
- MAILCATCHER_PORT=25
|
2017-11-10 17:02:07 +01:00
|
|
|
|
|
|
|
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:
|
2021-03-02 19:18:57 +01:00
|
|
|
image: mariadb:10.5
|
2017-11-10 17:02:07 +01:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=secret
|
2021-03-02 19:18:57 +01:00
|
|
|
- MYSQL_DATABASE=development
|
2017-11-10 17:02:07 +01:00
|
|
|
volumes:
|
|
|
|
- mariadb:/var/lib/mysql
|
|
|
|
|
2021-03-02 19:18:57 +01:00
|
|
|
phpmyadmin:
|
|
|
|
image: phpmyadmin/phpmyadmin
|
|
|
|
environment:
|
|
|
|
- PMA_HOST=mariadb
|
|
|
|
- PMA_USER=root
|
|
|
|
- PMA_PASSWORD=secret
|
|
|
|
ports:
|
|
|
|
- "2080:80"
|
|
|
|
|
2017-11-10 17:02:07 +01:00
|
|
|
redis:
|
2021-03-02 19:18:57 +01:00
|
|
|
image: redis:6.2-alpine
|
2017-11-10 17:02:07 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
bundle:
|
|
|
|
mariadb:
|