docker-compose.prod.yml

This commit is contained in:
Richard Morgan
2017-05-16 07:22:58 -04:00
parent e4e17dedc5
commit 9209b87c29
2 changed files with 42 additions and 2 deletions

39
docker-compose.prod.yml Executable file
View File

@@ -0,0 +1,39 @@
version: '2'
services:
app:
build:
context: .
dockerfile: ./docker/Dockerfile
image: tripbuilder:latest
ports:
- "9024:22"
links:
- redis
- db
nginx:
build:
context: .
dockerfile: ./docker/Dockerfile-nginx
image: tripbuilder:nginx
ports:
- "8080:80"
volumes_from:
- app
links:
- app
redis:
image: redis
ports:
- 6379:6379
db:
image: postgres:alpine
environment:
POSTGRES_PASSWORD: jqbdui1bdb
POSTGRES_USER: tripbuilder
POSTGRES_DB: tripbuilder
ports:
- 5432:5432