forked from thredded/thredded
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
77 lines (77 loc) · 2.52 KB
/
docker-compose.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3.6"
networks:
frontend:
backend:
services:
db:
image: postgres:12-alpine
expose:
- "5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: thredded-db-password
networks:
- backend
web:
build: .
# We want to avoid mapping Gemfile.lock, yarn.lock, etc but there is no way to exclude
# files using `volumes`.
volumes:
- ./.rubocop.yml:/thredded/.rubocop.yml
- ./.rspec:/thredded/.rspec
- ./Procfile.docker.dev:/thredded/Procfile.docker.dev
- ./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
- ./vendor:/thredded/vendor
- ./spec/commands:/thredded/spec/commands
- ./spec/controllers:/thredded/spec/controllers
- ./spec/dummy/app:/thredded/spec/dummy/app
- ./spec/dummy/babel.config.js:/thredded/spec/dummy/babel.config.js
- ./spec/dummy/bin:/thredded/spec/dummy/bin
- ./spec/dummy/config:/thredded/spec/dummy/config
- ./spec/dummy/config.ru:/thredded/spec/dummy/config.ru
- ./spec/dummy/db:/thredded/spec/dummy/db
- ./spec/dummy/lib:/thredded/spec/dummy/lib
- ./spec/dummy/public:/thredded/spec/dummy/public
- ./spec/dummy/Rakefile:/thredded/spec/dummy/Rakefile
- ./spec/features:/thredded/spec/features
- ./spec/fixtures:/thredded/spec/fixtures
- ./spec/forms:/thredded/spec/forms
- ./spec/gemfiles:/thredded/spec/gemfiles
- ./spec/helpers:/thredded/spec/helpers
- ./spec/jobs:/thredded/spec/jobs
- ./spec/lib:/thredded/spec/lib
- ./spec/mailers:/thredded/spec/mailers
- ./spec/migration:/thredded/spec/migration
- ./spec/models:/thredded/spec/models
- ./spec/policies:/thredded/spec/policies
- ./spec/support:/thredded/spec/support
- ./spec/view_models:/thredded/spec/view_models
- ./spec/views:/thredded/spec/views
- ./spec/factories.rb:/thredded/spec/factories.rb
- ./spec/i18n_spec.rb:/thredded/spec/i18n_spec.rb
- ./spec/spec_helper.rb:/thredded/spec/spec_helper.rb
working_dir: /thredded
environment:
DB: postgresql
DB_HOST: db
DB_PORT: 5432
DB_USERNAME: root
DB_PASSWORD: thredded-db-password
BUNDLE_GEMFILE: /thredded/Gemfile
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
command: script/docker-dev-start-web.sh
networks:
- backend
- frontend
ports:
- "9292:9292"
- "3035:3035"
depends_on:
- db