Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- # Named volumes
- volumes:
- # Postgres Data
- start-postgres-data:
- driver: local
- # Redis Data
- start-redis-data:
- driver: local
- services:
- # Postgres (10.3)
- postgres:
- image: postgres:10.3
- container_name: start-postgres
- volumes:
- - start-postgres-data:/var/lib/postgresql/data
- ports:
- - "5432:5432"
- environment:
- - POSTGRES_PASSWORD=start
- - POSTGRES_DB=start
- - POSTGRES_USER=start
- # Redis
- cache:
- image: redis:4.0
- container_name: start-redis
- command: --appendonly yes
- volumes:
- - start-redis-data:/data
- ports:
- - "6379:6379"
- # PHP (with Nginx)
- # you can change from nginx to apache, just change session 'image'
- app:
- image: ambientum/php:7.2-nginx
- container_name: start-app
- volumes:
- - .:/var/www/app
- ports:
- - "81:8181"
- links:
- - postgres
- - cache
Add Comment
Please, Sign In to add comment