Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 7ced754

Browse files
Merge pull request #42 from thefringeninja/compose
Example Postgres Deployment With Docker-Compose
2 parents d7db8a9 + 4335ca5 commit 7ced754

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: '3.1'
2+
3+
services:
4+
sql-stream-store:
5+
container_name: sss-example-server
6+
image: sqlstreamstore/hal:1.0.0-rc.3.11
7+
ports:
8+
- "5000:80"
9+
networks:
10+
- app-network
11+
- db-network
12+
environment:
13+
- SQLSTREAMSTORE_PROVIDER=postgres
14+
- SQLSTREAMSTORE_CONNECTION_STRING=Host=database;Port=5432;User Id=postgres;Database=example
15+
depends_on:
16+
- database
17+
18+
database:
19+
container_name: sss-example-postgres
20+
image: postgres:10.4-alpine
21+
ports:
22+
- "5432:5432"
23+
networks:
24+
- db-network
25+
26+
networks:
27+
app-network:
28+
driver: bridge
29+
db-network:
30+
driver: bridge

0 commit comments

Comments
 (0)