-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-dev.yml
54 lines (47 loc) · 1.12 KB
/
docker-compose-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '2'
services:
foodsoft:
extends: foodsoft_worker
command: ./proc-start web
ports:
- "3000:3000"
foodsoft_worker:
build:
context: .
dockerfile: Dockerfile-dev
platform: linux/x86_64
command: ./proc-start worker
volumes:
- bundle:/usr/local/bundle
- .:/app
environment:
- DATABASE_URL=mysql2://root:secret@mariadb/development?encoding=utf8mb4
- REDIS_URL=redis://redis:6379
- TEST_DATABASE_URL=mysql2://root:secret@mariadb/test?encoding=utf8mb4
- DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL=true
- MAILCATCHER_ADDRESS=mailcatcher
- MAILCATCHER_PORT=25
mailcatcher:
image: tophfr/mailcatcher
ports:
- "1080:80"
mariadb:
image: mariadb:10.5
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=development
volumes:
- mariadb:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_HOST=mariadb
- PMA_USER=root
- PMA_PASSWORD=secret
ports:
- "2080:80"
redis:
image: redis:6.2-alpine
volumes:
bundle:
mariadb: