-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
51 lines (51 loc) · 1.23 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
#
# docker-compose targets development only
#
version: '2'
services:
app:
build:
context: .
dockerfile: Dockerfile.development
environment:
- SHAKAPACKER_DEV_SERVER_HOST=webpack
volumes: # mount root directory from this machine to the container itself (live development, e.g. Rails sees changes to files without rebuilding container0
- .:/app
ports:
- '127.0.0.1:3000:3000' # local:docker
links:
- db
- postgres10_legacy
stdin_open: true
tty: true
postgres10_legacy:
image: mdillon/postgis:10
volumes:
- pg:/var/lib/postgresql/data
db:
image: postgis/postgis:12-3.4
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- '0.0.0.0:15432:5432'
volumes:
- pg12:/var/lib/postgresql/data
webpack:
build:
context: .
dockerfile: Dockerfile.development
environment:
- NODE_ENV=development
- RAILS_ENV=development
- SHAKAPACKER_DEV_SERVER_HOST=0.0.0.0
command: bash -c "npm install && /app/bin/shakapacker-dev-server"
volumes:
- .:/app
- ./volumes/webpack_build:/mnt/rails/public/webpack
ports:
- '3035:3035'
volumes:
pg:
external: false
pg12:
external: false