Permalink
Browse files

use VERSION variable in docker-compose

  • Loading branch information...
kamilsk committed Jan 14, 2019
1 parent 74177eb commit d710e8ac0f6b1d0ee7f29c116a80849e600d4cbc
Showing with 3 additions and 2 deletions.
  1. +1 −0 env/docker/compose/.env.example
  2. +2 −2 env/docker/compose/docker-compose.base.yml
@@ -1,6 +1,7 @@
# only for docker compose

PACKAGE=github.com/kamilsk/guard
VERSION=1.x

LOCAL_DB_PORT=5432
LOCAL_SERVER_HTTP_PORT=80
@@ -15,7 +15,7 @@ services:
- ../legacy/context/:/var/www/html/:ro

migration:
image: kamilsk/guard:latest
image: kamilsk/guard:${VERSION}
build:
context: ../../../.
dockerfile: ./env/docker/service/Dockerfile
@@ -26,7 +26,7 @@ services:
restart: on-failure

service:
image: kamilsk/guard:latest
image: kamilsk/guard:${VERSION}
build:
context: ../../../.
dockerfile: ./env/docker/service/Dockerfile

0 comments on commit d710e8a

Please sign in to comment.