Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.3'
- services:
- db:
- image: postgres:9.4
- restart: always
- ports:
- - 5432:5432
- volumes:
- - ./db-data:/var/lib/postgresql/data
- environment:
- POSTGRES_DB: dbname
- POSTGRES_USER: dbuser
- POSTGRES_PASSWORD: dbpassword
- networks:
- - back
- backend:
- depends_on:
- - db
- build:
- context: .
- dockerfile: ./Dockerfile-php-apache-composer
- volumes:
- - "./src:/var/www/html"
- restart: always
- ports:
- - 80:80
- networks:
- - back
- networks:
- back:
Add Comment
Please, Sign In to add comment