mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-12 06:57:06 +02:00
docker: add Dockerfiles for all servers & enable docker compose
This commit is contained in:
1 parent
c0fab8a735
commit
b15495d1bc
6 files changed
+159
-1
No files matched your search
@@ -0,0 +1,59 @@
|
||||
version: "3.4"
|
||||
|
||||
x-server-discovery:
|
||||
&server-discovery
|
||||
NOTESNOOK_SERVER_PORT: 80
|
||||
NOTESNOOK_SERVER_HOST: notesnook-server
|
||||
IDENTITY_SERVER_PORT: 80
|
||||
IDENTITY_SERVER_HOST: identity-server
|
||||
SSE_SERVER_PORT: 80
|
||||
SSE_SERVER_HOST: sse-server
|
||||
SELF_HOSTED: 1
|
||||
|
||||
services:
|
||||
notesnook-db:
|
||||
image: mongo
|
||||
networks:
|
||||
- notesnook
|
||||
volumes:
|
||||
- /data/db
|
||||
|
||||
notesnook-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Notesnook.API/Dockerfile
|
||||
ports:
|
||||
- "5264:80"
|
||||
networks:
|
||||
- notesnook
|
||||
environment:
|
||||
<<: *server-discovery
|
||||
MONGODB_CONNECTION_STRING: mongodb://notesnook-db:27017/notesnook
|
||||
MONGODB_DATABASE_NAME: notesnook
|
||||
|
||||
identity-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Streetwriters.Identity/Dockerfile
|
||||
ports:
|
||||
- "8264:80"
|
||||
networks:
|
||||
- notesnook
|
||||
environment:
|
||||
<<: *server-discovery
|
||||
MONGODB_CONNECTION_STRING: mongodb://notesnook-db:27017/identity
|
||||
MONGODB_DATABASE_NAME: identity
|
||||
|
||||
sse-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Streetwriters.Messenger/Dockerfile
|
||||
ports:
|
||||
- "7264:80"
|
||||
networks:
|
||||
- notesnook
|
||||
environment:
|
||||
<<: *server-discovery
|
||||
|
||||
networks:
|
||||
notesnook:
|
||||
Reference in new issue
Block a user