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 ### Quickstart Using Docker Compose
Required: 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 ```bash
$ wget https://raw.githubusercontent.com/asciinema/asciinema.org/master/docker-compose.yml $ 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 $ 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. 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 ### Manual setup

View File

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