Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- postgres:
- image: postgres:9.6
- environment:
- POSTGRES_DB: ${POSTGRES_DB}
- POSTGRES_USER: ${POSTGRES_USER}
- POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
- POSTGRES_PORT: ${POSTGRES_PORT}
- php:
- build: docker/php7-fpm
- env_file: ./.env
- volumes:
- - ${SYMFONY_APP_PATH}:/var/www/symfony
- nginx:
- build: docker/nginx
- ports:
- - ${WEB_PORT}:80
- volumes:
- - php:/var/www/symfony
- - ${LOGS_DIR}/nginx/:/var/log/nginx
- node:
- build: docker/node
- ports:
- - 8081:8081
- volumes:
- - ${SYMFONY_APP_PATH}:/var/www/symfony
- command: bash -c "npm i && npm run dev"
- environment:
- WEB_PORT: ${WEB_PORT}
- WEBPACK_PORT: ${WEBPACK_PORT}
- APP_ENV: ${APP_ENV}
- networks:
- default:
- external:
- name: app_network
- volumes:
- php:
Add Comment
Please, Sign In to add comment