Add docker-compose for sangha-manage

parent c5a860e0
{
"API": {
"BaseURL": "https://api.sangha.techcultivation.org",
"PathPrefix": "v1/",
"Bind": ":9980",
"SwaggerAPIPath": "/apidocs.json",
"SwaggerPath": "/apidocs/",
"SwaggerFilePath": "/home/sangha/swagger-ui/dist",
"ImageFilePath": "/home/sangha/images"
},
"Connections": {
"PostgreSQL": {
"Host": "sangha-postgres",
"DbName": "sangha",
"User": "postgres",
"Password": "docker",
"Port": 5432,
"SslMode": "disable"
},
"AMQP": {
"Host": "sangha-rabbitmq",
"User": "guest",
"Password": "guest",
"Port": 5672,
"Broker": "rabbit",
"Exchange": "sandbox",
"Queue": "payments"
},
"PayPal": "http://localhost:9801/v1/payments"
},
"Web": {
"BaseURL": "https://api.sangha.techcultivation.org",
"ImageURL": "https://static.sangha.techcultivation.org"
}
}
version: '2'
services:
sangha-postgres:
restart: unless-stopped
image: postgres:10.5
volumes:
- ./data/database:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: docker
sangha-api:
restart: unless-stopped
image: fribbledom/sangha:demov2
volumes:
- ./data/config:/conf
command: /go/bin/sangha --config conf/sangha.conf serve
ports:
- 9980:9980
environment:
- VIRTUAL_HOST=api.sangha.techcultivation.org
- VIRTUAL_PORT=9980
- LETSENCRYPT_HOST=api.sangha.techcultivation.org
- LETSENCRYPT_EMAIL=admin@techcultivation.org
depends_on:
- sangha-postgres
- sangha-rabbitmq
networks:
- default
- proxy
sangha-hbci:
image: fribbledom/sangha-hbci:demo
volumes:
- ./data/config/hbci:/conf
command: /go/bin/hbci --config conf/hbci.conf fetch
depends_on:
- sangha-postgres
sangha-transactions:
restart: unless-stopped
image: fribbledom/sangha-transactions:demo
volumes:
- ./data/config/transactions:/conf
command: /go/bin/transactions --config conf/transactions.conf
depends_on:
- sangha-postgres
- sangha-rabbitmq
sangha-manage:
restart: unless-stopped
image: fribbledom/sangha-manage:demov3
ports:
- 8080:80
environment:
- VIRTUAL_HOST=sangha.techcultivation.org
- VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=sangha.techcultivation.org
- LETSENCRYPT_EMAIL=admin@techcultivation.org
depends_on:
- sangha-api
networks:
- default
- proxy
sangha-rabbitmq:
restart: unless-stopped
image: rabbitmq:3-management
# ports:
# - 5672:5672
environment:
- RABBITMQ_DEFAULT_VHOST=rabbit
networks:
proxy:
external:
name: nginx_proxy
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