Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- nginx:
- build: ./docker/nginx/
- ports:
- - 80:80
- links:
- - php7
- volumes_from:
- - app
- depends_on:
- - db
- php7:
- build: ./docker/php/
- expose:
- - 9000
- links:
- - db:localhost
- volumes_from:
- - app
- depends_on:
- - db
- app:
- image: php:7.2-fpm
- volumes:
- ...
- db:
- image: postgres:9.6
- environment:
- POSTGRES_PASSWORD: nothing
- POSTGRES_USER: nothing
- POSTGRES_DB: nothing
- volumes:
- - './.1/pg:/var/lib/postgresql/data'
- ports:
- - 5432:5432
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement