Created
January 27, 2021 13:11
-
-
Save ovuruska/1a995b338bf2914c98686343e3c6817e to your computer and use it in GitHub Desktop.
Pass argument syntax in Docker Compose file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
args: | |
PORT: 8080 | |
ports: | |
- "8080:8080" | |
selam_server: | |
build: | |
context: . | |
dockerfile: selam.Dockerfile | |
args: | |
PORT: 15120 | |
ports: | |
- "15120:15120" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment