Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.5'
- services:
- nginx:
- build:
- context: ./
- target: nginx
- ports:
- - '8080:80'
- volumes:
- - './public:/var/www/public:ro'
- depends_on:
- - php
- php:
- build:
- context: ./
- target: php_fpm
- environment:
- APP_ENV: dev
- volumes:
- - './:/var/www/'
- depends_on:
- - mongo
- mongo:
- build:
- context: ./
- target: mongo
- volumes:
- - './var/data:/data/db'
- environment:
- MONGO_INITDB_ROOT_USERNAME: admin
- MONGO_INITDB_ROOT_PASSWORD: admin
- networks:
- default:
- name: blog-network
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement