Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #docker-compose.yml
- version: '2'
- services:
- data-init:
- build: .
- volumes:
- - ./src:/var/www/eventzor/main_api
- - /etc/nginx
- nginx:
- image: nginx
- volumes_from:
- - data-init
- links:
- - php-fm:php
- ports:
- - "80:80"
- php-fm:
- image: php:7.0-fpm
- volumes_from:
- - data-init
- links:
- - postgres:db
- expose:
- - "9000"
- environment:
- DEV: "1"
- postgres:
- image: postgres
- volumes:
- - postgres-data:/var/lib/postgresql/data
- expose:
- - "5432"
- environment:
- POSTGRES_USER: symfony
- POSTGRES_PASSWORD: xxxx
- POSTGRES_DB: eventzor_main_api
- volumes:
- postgres-data: {}
- #Dockerfile
- FROM busybox
- COPY ./conf/nginx /etc/nginx
- COPY ./src /var/www/eventzor/main_api
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement