Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- networks:
- intranet:
- services:
- postgres:
- image: postgres:9.3.6
- container_name: intranet-postgres
- volumes:
- - ./database:/postgres-data
- environment:
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_DB=postgres
- - POSTGRES_USER=postgres
- - PGDATA=/postgres-data
- networks:
- intranet:
- php7.0:
- image: php7.0-fpm
- container_name: intranet-php7.0
- volumes:
- - ./www:/app:rw
- links:
- - postgres
- networks:
- intranet:
- app:
- image: nginx
- container_name: intranet-app
- volumes:
- - ./www:/app:rw
- - ./conf/default.conf:/etc/nginx/conf.d/default.conf:ro
- links:
- - php7.0
- group_add:
- - www-data
- networks:
- intranet:
- ports:
- - "8090:80"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement