forked from thredded/thredded
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 966 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (37 loc) · 966 Bytes
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
db:
image: postgres:12-alpine
ports:
- "5434:5432"
environment:
POSTGRES_USER: root
web:
build: .
volumes:
- ./.rubocop.yml:/thredded/.rubocop.yml
- ./.rspec:/thredded/.rspec
- ./Rakefile:/thredded/Rakefile
- ./config.ru:/thredded/config.ru
- ./app:/thredded/app
- ./bin:/thredded/bin
- ./config:/thredded/config
- ./db:/thredded/db
- ./lib:/thredded/lib
- ./script:/thredded/script
- ./spec:/thredded/spec
- ./vendor:/thredded/vendor
# Ignore these paths
- /thredded/spec/dummy/tmp/
working_dir: /thredded
environment:
DB: postgresql
DB_USERNAME: root
DB_PASSWORD:
command: >
bash -c 'script/wait-for-tcp $$DB_1_PORT_5432_TCP_ADDR $$DB_1_PORT_5432_TCP_PORT &&
bundle exec rake db:drop db:create db:migrate &&
bundle exec rake db:seed &&
bin/rails server --port 9292 --binding 0.0.0.0'
ports:
- "9292:9292"
links:
- db