forked from wyeworks/nucore-open
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
64 lines (64 loc) · 1.28 KB
/
docker-compose.yaml
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
55
56
57
58
59
60
61
62
63
64
# To start all docker containers run: `docker-compose up`
#
version: '3.8'
services:
app:
build:
context: .
target: develop
command: bash -c "bundle install && bundle exec rails s -p 3000 -b '0.0.0.0'"
ports:
- "3000:3000"
depends_on:
- db
volumes:
- .:/app
- gem_cache:/gems
environment:
- MYSQL_HOST=db
- MYSQL_USER=root
- MYSQL_PASSWORD=root
- SMTP_HOST=mailcatcher
tty: true
stdin_open: true
delayed_job:
build:
context: .
target: develop
command: bundle exec rake jobs:work
depends_on:
- app
volumes:
- .:/app
- gem_cache:/gems
environment:
- MYSQL_HOST=db
- MYSQL_USER=root
- MYSQL_PASSWORD=root
- SMTP_HOST=mailcatcher
stdin_open: true
tty: true
db:
image: mysql:8.0.31
environment:
- MYSQL_ROOT_PASSWORD=root
ports:
- "3306:3306"
volumes:
- db-data:/var/lib/mysql
logging:
driver: none
mailcatcher:
build: .
command: bash -c "gem install mailcatcher && mailcatcher --ip 0.0.0.0 --no-quit -f"
ports:
- "1080:1080"
volumes:
- .:/app
- gem_cache:/gems
tty: true
stdin_open: true
volumes:
db-data:
driver: local
gem_cache: {}