-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (46 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
47 lines (46 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.4'
services:
mongodb:
image: mvertes/alpine-mongo
ports:
- 27017:27017
postgres:
image: postgres:12-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=Secr3t
- POSTGRES_DB=graph
rabbitmq:
image: rabbitmq:3.8-management-alpine
restart: always
ports:
- 8080:15672
- 5672:5672
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=Secr3t
graph.api:
image: ${DOCKER_REGISTRY-}graphapi
ports:
# - 5017:443
- 5016:80
build:
context: .
dockerfile: Dockerfile
environment:
- ServiceBus__Url=rabbitmq://rabbitmq
- ServiceBus__Transport=rabbitmq
- ServiceBus__Queue=graph-queue
- ServiceBus__Credentials__Username=admin
- ServiceBus__Credentials__Password=Secr3t
- ConnectionStrings__WriteDatabaseProvider=postgres
- ConnectionStrings__WriteDatabase=Host=postgres;Database=graph;Username=user;Password=Secr3t
- ConnectionStrings__ReadDatabaseProvider=mongodb
- ConnectionStrings__ReadDatabase=mongodb://mongodb:27017
# - ASPNETCORE_URLS=http://*:5016
depends_on:
- postgres
- rabbitmq
- mongodb