docker-compose.prod.yml
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "Trip Builder",
|
"name": "Trip Builder",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "API for Trip Builder",
|
"author" : "Richard Morgan",
|
||||||
"title": "... API v1",
|
"description": "API for Trip Builder, by Richard Morgan",
|
||||||
|
"title": "Trip Builder API v1",
|
||||||
"url" : "http://localhost:8080",
|
"url" : "http://localhost:8080",
|
||||||
"sampleUrl" : "http://localhost:8080"
|
"sampleUrl" : "http://localhost:8080"
|
||||||
}
|
}
|
||||||
|
|||||||
39
docker-compose.prod.yml
Executable file
39
docker-compose.prod.yml
Executable 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
|
||||||
Reference in New Issue
Block a user