Created
December 20, 2019 16:02
-
-
Save GarryOne/eaad07c9603702defaf079dcf06d477e to your computer and use it in GitHub Desktop.
PHP Zend docker-compose.yml
This file contains hidden or 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.1" | |
services: | |
web: | |
build: . | |
container_name: samsa | |
restart: always | |
volumes: | |
- .:/var/www/html | |
depends_on: | |
- 'mongo' | |
environment: | |
COMPOSER_ALLOW_SUPERUSER: 1 | |
APP_ENV: local | |
ports: | |
- 8888:80 | |
networks: | |
- elk | |
mongo: | |
image: mongo:latest | |
restart: always | |
container_name: mongo | |
volumes: | |
- ./docker/persistance/mongo/data/db:/data/db | |
ports: | |
- 27018:27017 | |
networks: | |
- elk | |
environment: | |
MONGO_INITDB_ROOT_DATABASE: zf2odm | |
networks: | |
elk: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment