-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
44 lines (44 loc) · 1.51 KB
/
docker-compose.override.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
version: '3'
volumes:
database:
gems:
node_modules:
services:
db:
env_file: .env
volumes:
- database:/var/lib/postgresql/data # persist data between containers
mailcatcher:
build:
context: .
dockerfile: mailcatcher.Dockerfile
command: mailcatcher --no-quit --foreground --ip=0.0.0.0
env_file: .env
ports:
- "127.0.0.1:1080:1080"
webpacker:
build:
context: .
dockerfile: Dockerfile
command: bin/webpack-dev-server
environment:
WEBPACKER_DEV_SERVER_HOST: "0.0.0.0"
volumes:
- gems:/root/values_sorter/vendor/bundle # persistent storage == faster updates
- node_modules:/root/values_sorter/node_modules # persistent storage == faster updates
- .:/root/values_sorter # mounts code as local volume so dev image won't need rebuilds after code changes
web:
env_file: .env
environment:
WEBPACKER_DEV_SERVER_HOST: "webpacker"
depends_on:
- db
- mailcatcher
- webpacker
volumes:
- gems:/root/values_sorter/vendor/bundle # persistent storage == faster updates
- node_modules:/root/values_sorter/node_modules # persistent storage == faster updates
- .:/root/values_sorter # mounts code as local volume so dev image won't need rebuilds after code changes
- ./docker.bashrc:/root/.bashrc # allow per-developer bash config
- ./docker.bash_history:/root/.bash_history # retain bash cli history in dev
- ./docker.pry_history:/root/.pry_history # retail rails cli history in dev