Rename docker containers & services

This commit is contained in:
Marcin Kulik 2017-04-13 16:44:35 +02:00
parent e134fd7898
commit 4a6f6cb7ca
2 changed files with 14 additions and 11 deletions

View File

@ -24,18 +24,20 @@ your organization.
### Quickstart Using Docker Compose
Required:
- [Docker](https://docs.docker.com/engine/getstarted/step_one/#step-1-get-docker)
- [docker-compose 1.5+](https://docs.docker.com/compose/install/)
- [Docker](https://docs.docker.com/engine/getstarted/step_one/#step-1-get-docker)
- [docker-compose 1.5+](https://docs.docker.com/compose/install/)
```bash
$ wget https://raw.githubusercontent.com/asciinema/asciinema.org/master/docker-compose.yml
$ docker-compose up -d asciinema
$ docker-compose up -d web
$ docker-compose run --rm db_init
```
You can override the address/port that is sent in email with login token by passing HOST="host:port" environment variable when starting the web server.
Assuming you are running Docker Toolbox and VirtualBox: go to http://192.168.99.100:3000/ and enjoy.
Assuming you are running Docker Toolbox and VirtualBox: go to http://your-docker-host:3000/ and enjoy.
### Manual setup

View File

@ -1,7 +1,7 @@
version: '2'
# Quickstart:
# docker-compose up -d asciinema
# docker-compose up -d web
# docker-compose run --rm db_init
# To cleanup:
@ -10,14 +10,15 @@ version: '2'
services:
postgres:
image: postgres
container_name: postgres
container_name: asciinema_postgres
redis:
image: redis
container_name: redis
container_name: asciinema_redis
sidekiq:
image: asciinema/asciinema.org
container_name: asciinema_worker
links:
- redis
- postgres
@ -29,9 +30,9 @@ services:
volumes:
- /tmp/asciinema/uploads:/app/uploads
asciinema:
web:
image: asciinema/asciinema.org
container_name: asciinema
container_name: asciinema_web
links:
- redis
- postgres