Skip to content

Instantly share code, notes, and snippets.

@ovuruska
Created January 27, 2021 13:25
Show Gist options
  • Save ovuruska/c621e416adde01b1b0f1712ec6f06497 to your computer and use it in GitHub Desktop.
Save ovuruska/c621e416adde01b1b0f1712ec6f06497 to your computer and use it in GitHub Desktop.
Docker Compose with environment variable setting.
version: "3.5"
#$ docker run -d -p 6379:6379 redis
services:
redis:
image : redis
ports:
- "6379:6379"
api_server:
depends_on:
- redis
build:
context: .
dockerfile: api.Dockerfile
environment:
PORT: 80
ports:
- "80:80"
selam_server:
build:
context: .
dockerfile: selam.Dockerfile
environment:
PORT: 15120
ports:
- "15120:15120"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment