Created
March 15, 2018 06:34
-
-
Save rana-ahmed/254d99fcc3186d5a2892e2d0b0a6269a to your computer and use it in GitHub Desktop.
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: '2' | |
services: | |
nginx: | |
image: nginx:latest | |
container_name: nz01 | |
ports: | |
- "8000:8000" | |
volumes: | |
- ./src:/src | |
- ./config/nginx:/etc/nginx/conf.d | |
depends_on: | |
- web | |
web: | |
build: . | |
container_name: dz01 | |
depends_on: | |
- db | |
volumes: | |
- ./src:/src | |
expose: | |
- "8000" | |
links: | |
- redis | |
db: | |
image: postgres:latest | |
container_name: pz01 | |
redis: | |
image: redis:latest | |
container_name: rz01 | |
ports: | |
- '6379:6379' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment