-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
109 lines (99 loc) · 2.37 KB
/
docker-compose.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3.8'
networks:
default:
services:
postgres:
image: postgres:latest
container_name: postgres
volumes:
- ../volumes/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=admin
- POSTGRES_USER=postgres
- POSTGRES_DB=Upskill
- POSTGRES_PORT=5432
ports:
- 5432:5432
networks:
- default
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
eventstore:
container_name: eventstore
image: ghcr.io/eventstore/eventstore:21.10.0-alpha-arm64v8
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
- EVENTSTORE_START_STANDARD_PROJECTIONS=true
- EVENTSTORE_EXT_TCP_PORT=1113
- EVENTSTORE_HTTP_PORT=2113
- EVENTSTORE_INSECURE=true
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
ports:
- "1113:1113"
- "2113:2113"
networks:
- default
opensearch-node:
image: opensearchproject/opensearch:2.8.0
container_name: opensearch-node
environment:
- discovery.type=single-node
- plugins.security.disabled=true
ports:
- "9200:9200"
- "9600:9600"
commands:
container_name: afranczak-commands
image: ${DOCKER_REGISTRY-}afranczak-commands
build:
context: .
dockerfile: ./Commands.Dockerfile
ports:
- "5010:80"
depends_on:
- postgres
- eventstore
networks:
- default
queries:
container_name: afranczak-queries
image: ${DOCKER_REGISTRY-}afranczak-queries
build:
context: .
dockerfile: ./Queries.Dockerfile
ports:
- "5020:80"
depends_on:
- postgres
networks:
- default
#will exit if sns is not running
listener:
container_name: afranczak-listener
image: ${DOCKER_REGISTRY-}afranczak-listener
build:
context: .
dockerfile: ./Listener.Dockerfile
ports:
- "5030:80"
depends_on:
- eventstore
networks:
- default
projections:
container_name: afranczak-projections
image: ${DOCKER_REGISTRY-}afranczak-projections
build:
context: .
dockerfile: ./Projections.Dockerfile
ports:
- "5040:8080"