Commit 287feff9 authored by Profpatsch's avatar Profpatsch

containers/compose: basic deployment config

A temporary template to deploy the sample database.
parent 03ad8eec
{
"API": {
"BaseURL": "http://localhost:9991",
"PathPrefix": "v1/",
"Bind": ":9991",
"SwaggerAPIPath": "/apidocs.json",
"SwaggerPath": "/apidocs/",
"SwaggerFilePath": "/home/ubuntu/swagger-ui/dist",
"ImageFilePath": "/home/ubuntu/sangha_images"
},
"Connections": {
"PostgreSQLConnection": {
"Host": "sangha-postgres",
"DbName": "sangha",
"User": "sanghauser",
"Password": "sanghapass",
"Port": 5432,
"SslMode": "disable"
},
"AMQPConnection": {
"Host": "sangha-rabbitmq",
"User": "user",
"Password": "password",
"Port": 5672,
"Broker": "rabbit",
"Queue": "payments"
},
"PayPal": "http://localhost:9801"
},
"Web": {
"BaseURL": "http://localhost:4200/"
}
}
hosts: dns [!UNAVAIL=return] files
host sangha sanghauser 172.0.0.0/8 trust
version: "3"
version: "2"
services:
sangha-postgres:
......@@ -7,6 +7,7 @@ services:
image: registry.gitlab.techcultivation.org/sangha/sangha-deployment/sangha-postgres:deployment
volumes:
- ./database:/var/lib/postgresql
- ./config/pg_hba.conf:/var/lib/postgresql/pg_hba.conf
working_dir: /var/lib/postgresql
environment:
PGDATA: /var/lib/postgresql
......@@ -15,7 +16,7 @@ services:
- "5432:5432"
# TODO
networks:
- default
- deploy
sangha-api:
container_name: sangha-api
......@@ -29,7 +30,7 @@ services:
command: /bin/sangha serve
# TODO
networks:
- default
- deploy
sangha-rabbitmq:
container_name: sangha-rabbitmq
......@@ -40,9 +41,8 @@ services:
ports:
- "5672:5672"
networks:
- default
- deploy
networks:
default:
\ No newline at end of file
deploy:
driver: bridge
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment