Skip to content

Instantly share code, notes, and snippets.

@jl91
Created December 20, 2018 20:54
Show Gist options
  • Save jl91/d843029dadcf24b88383d98b19510386 to your computer and use it in GitHub Desktop.
Save jl91/d843029dadcf24b88383d98b19510386 to your computer and use it in GitHub Desktop.
docker-compose
version: '3.1'
services:
web-server:
image: jlennon91/php:1.0.7
restart: always
ports:
- 8080:80
volumes:
- .:/var/www/html/app
depends_on:
- mongo
mongo:
image: mongo
restart: always
expose:
- 27017
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment