I have docker-compose.yml
with such content:
version: '3'
services:
some_service:
build:
dockerfile: Dockerfile
ports:
- '8080:${PORT}'
And I have my codeship-steps.yml
with:
- type: parallel
steps:
- service: some_service
command: printenv
Also, I have .env
file with:
PORT=8080
And when I'm trying to run locally jet steps
I getting an error:
strconv.ParseInt: parsing "${PORT}": invalid syntax
I'm trying to pass this env variable in different ways, but I have no success. Is it possible at all or .env
variables with Codeship are only for application inside docker and not for configuration?