Created
January 27, 2021 13:25
-
-
Save ovuruska/c621e416adde01b1b0f1712ec6f06497 to your computer and use it in GitHub Desktop.
Docker Compose with environment variable setting.
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 | |
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