-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (36 loc) · 940 Bytes
/
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
db:
image: postgres:9.4.1
ports:
- "5432:5432"
# environment:
# DB_1_ENV_PGDATA
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
# command: bundle exec rails s -p 3000
ports:
- "3000:3000"
links:
- db:postgres
volumes:
- .:/opt/air_sched
# This tells the web container to mount the `bundle` images'
# /bundle volume to the `web` containers /bundle path.
# volumes_from:
# - bundle
environment:
APP_HOME: /opt/air_sched
DB_ADAPTER: postgres
DB_HOST: database
DB_NAME: air_sched_development
DB_USER: docker
DB_PASS: docker
# --- Add this to your fig.yml or docker-compose.yml file ---
#bundle:
# # 'image' will vary depending on your docker-compose
# # project name. You may need to run `docker-compose build web`
# # before this works.
# image: airsched_web
# command: echo "I'm a little data container, short and stout..."
# volumes:
# - /bundle