Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ web:
links:
- db
ports:
- 8000:8000
- "8000:8000"
- "49100:22"
db:
image: orchardup/postgresql
```

**Note** When mapping ports in the format HOST:CONTAINER you may experience erroneous results when using a container port lower than 60. This is due to YAML parsing numbers in the format "xx:yy" as sexagesimal (base 60) for this reason it is recommended to define your port mappings as strings.

(No more installing Postgres on your laptop!)

Then type `fig up`, and Fig will start and run your entire app:
Expand Down
4 changes: 2 additions & 2 deletions docs/django.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ Simple enough. Finally, this is all tied together with a file called `fig.yml`.
db:
image: orchardup/postgresql
ports:
- 5432
- "5432"
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- 8000:8000
- "8000:8000"
links:
- db

Expand Down
2 changes: 1 addition & 1 deletion docs/fig.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
jekyll:
build: .
ports:
- 4000:4000
- "4000:4000"
volumes:
- .:/code
environment:
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ web:
links:
- db
ports:
- 8000:8000
- "8000:8000"
db:
image: orchardup/postgresql
```
Expand Down Expand Up @@ -107,7 +107,7 @@ We then define a set of services using `fig.yml`:
build: .
command: python app.py
ports:
- 5000:5000
- "5000:5000"
volumes:
- .:/code
links:
Expand Down
4 changes: 2 additions & 2 deletions docs/rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ Finally, `fig.yml` is where the magic happens. It describes what services our ap
db:
image: orchardup/postgresql
ports:
- 5432
- "5432"
web:
build: .
command: bundle exec rackup -p 3000
volumes:
- .:/myapp
ports:
- 3000:3000
- "3000:3000"
links:
- db

Expand Down
4 changes: 2 additions & 2 deletions docs/wordpress.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ web:
build: .
command: php -S 0.0.0.0:8000 -t /code
ports:
- 8000:8000
- "8000:8000"
links:
- db
volumes:
- .:/code
db:
image: orchardup/mysql
ports:
- 3306:3306
- "3306:3306"
environment:
MYSQL_DATABASE: wordpress
```
Expand Down
6 changes: 4 additions & 2 deletions docs/yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ links:
- redis

-- Expose ports. Either specify both ports (HOST:CONTAINER), or just the container port (a random host port will be chosen).
-- Note When mapping ports in the format HOST:CONTAINER you may experience erroneous results when using a container port lower than 60. This is due to YAML parsing numbers in the format "xx:yy" as sexagesimal (base 60) for this reason it is recommended to define your port mappings as strings.
ports:
- 3000
- 8000:8000
- "3000"
- "8000:8000"
- "49100:22"

-- Map volumes from the host machine (HOST:CONTAINER).
volumes:
Expand Down