Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
fix #35: update docker-compose.*.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed May 20, 2018
1 parent 2eb7ea5 commit b4e0326
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -25,6 +25,7 @@ $ make up status
passport_db_1 docker-entrypoint.sh postgres Up 0.0.0.0:5432->5432/tcp
passport_server_1 /bin/sh -c envsubst '$SERV ... Up 80/tcp, 0.0.0.0:80->8080/tcp
passport_service_1 passport run --with-profil ... Up 0.0.0.0:8080->80/tcp, 0.0.0.0:8090->8090/tcp, 0.0.0.0:8091->8091/tcp
```
## Specification
Expand Down Expand Up @@ -78,7 +79,7 @@ $ tar xf passport.tar.gz -C "${GOPATH}"/bin/ && rm passport.tar.gz
### Docker Hub
```bash
$ docker pull kamilsk/passport:latest
$ docker pull kamilsk/passport:1.x
```
### From source code
Expand Down
8 changes: 2 additions & 6 deletions env/docker-compose.base.yml
Expand Up @@ -6,19 +6,15 @@ services:
env_file: .env

migration:
build:
context: ../.
dockerfile: ./env/Dockerfile
image: kamilsk/passport:1.x # https://hub.docker.com/r/kamilsk/passport/
command: [ "migrate", "up" ]
depends_on:
- db
env_file: .env
restart: on-failure

service:
build:
context: ../.
dockerfile: ./env/Dockerfile
image: kamilsk/passport:1.x # https://hub.docker.com/r/kamilsk/passport/
command: [ "run", "--with-profiler", "--with-monitoring" ]
depends_on:
- migration
Expand Down
8 changes: 6 additions & 2 deletions env/docker-compose.dev.yml
Expand Up @@ -8,12 +8,16 @@ services:
- pgdata:${PGDATA}

migration:
image: kamilsk/passport:latest # https://hub.docker.com/r/kamilsk/passport/
build:
context: ../.
dockerfile: ./env/Dockerfile
volumes:
- vendor:/usr/share/passport

service:
image: kamilsk/passport:latest # https://hub.docker.com/r/kamilsk/passport/
build:
context: ../.
dockerfile: ./env/Dockerfile
ports:
- ${LOCAL_SERVICE_HTTP_PORT}:${PORT}
- ${LOCAL_SERVICE_PROFILING_PORT}:8090
Expand Down

0 comments on commit b4e0326

Please sign in to comment.