-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.06 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
version: '3.5'
services:
web:
build:
context: .
ports:
- 3000:3000
volumes: &volumes
- .:/app:cached
- ~/.bash_history:/root/.bash_history
- bundle_cache:/usr/local/bundle
command: bin/rails s -b '0.0.0.0' -p 3000
depends_on:
- postgres
#- sidekiq
env_file: envvars
environment: &environment
RAILS_LOG_TO_STDOUT: 'true'
RAILS_ENV: development
WEBPACKER_DEV_SERVER_HOST: 'frontend'
frontend:
image: one_vs_100_web
volumes: *volumes
command: bin/webpack-dev-server
ports:
- 3035:3035
env_file: envvars
environment:
<<: *environment
WEBPACK_DEFAULT_LISTEN_HOST_ADDR: '0.0.0.0'
postgres:
image: postgres:12
environment:
POSTGRES_DB: one_vs_100_test
POSTGRES_USER: one_vs_100
POSTGRES_PASSWORD: one_vs_100
# sidekiq:
# image: one_vs_100_web
# depends_on:
# - postgres
# volumes: *volumes
# env_file: envvars
# environment:
# <<: *environment
# command: sidekiq
volumes:
bundle_cache: