forked from t3-innovation-network/desm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.02 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
version: "3"
services:
web:
build: .
command: bundle exec rdebug-ide --debug --host 0.0.0.0 --port 1234 -- bin/rails server -p 3030 -b 0.0.0.0
volumes:
- .:/app
ports:
- "3030:3030"
- "1234:1234"
depends_on:
- db
- redis
environment:
- WEBPACKER_DEV_SERVER_HOST=webpack
env_file:
- .env
db:
image: postgres
volumes:
- pg_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: "db"
POSTGRES_HOST_AUTH_METHOD: "trust"
webpack:
build: .
command: bash -c "rm -rf ./public/packs; APP_DOMAIN=${APP_DOMAIN} ADMIN_ROLE_NAME=${ADMIN_ROLE_NAME} ./bin/webpack-dev-server"
volumes:
- .:/app
ports:
- "3035:3035"
environment:
- "NODE_ENV=development"
- "RAILS_ENV=development"
- "WEBPACKER_DEV_SERVER_HOST=0.0.0.0"
env_file:
- .env
redis:
image: "redis:5-alpine"
command: redis-server
ports:
- "6380:6379"
volumes:
- "redis:/data"
volumes:
pg_data:
redis: