Skip to content

Commit

Permalink
docker: use container images from dockerhub in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Jul 31, 2024
1 parent d0a1a2e commit 2bbb50e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.4"

x-server-discovery: &server-discovery
NOTESNOOK_SERVER_PORT: 80
NOTESNOOK_SERVER_HOST: notesnook-server
Expand Down Expand Up @@ -72,9 +70,7 @@ services:
mc mb minio/$$S3_BUCKET_NAME -p
identity-server:
build:
context: .
dockerfile: ./Streetwriters.Identity/Dockerfile
image: streetwriters/identity:latest
ports:
- "8264:80"
networks:
Expand All @@ -94,9 +90,7 @@ services:
MONGODB_DATABASE_NAME: identity

notesnook-server:
build:
context: .
dockerfile: ./Notesnook.API/Dockerfile
image: streetwriters/notesnook-sync:latest
ports:
- "5264:80"
networks:
Expand All @@ -114,7 +108,7 @@ services:
start_period: 60s
environment:
<<: *server-discovery
MONGODB_CONNECTION_STRING: mongodb://notesnook-db:27017/notesnook?replSet=rs0
MONGODB_CONNECTION_STRING: mongodb://notesnook-db:27017/?replSet=rs0
MONGODB_DATABASE_NAME: notesnook
S3_INTERNAL_SERVICE_URL: "${S3_SERVICE_URL:-http://notesnook-s3:9000}"
S3_ACCESS_KEY_ID: "${S3_ACCESS_KEY_ID:-${MINIO_ROOT_USER:-minioadmin}}"
Expand All @@ -124,9 +118,7 @@ services:
S3_BUCKET_NAME: "${S3_BUCKET_NAME}"

sse-server:
build:
context: .
dockerfile: ./Streetwriters.Messenger/Dockerfile
image: streetwriters/sse:latest
ports:
- "7264:80"
env_file: *env-files
Expand Down

0 comments on commit 2bbb50e

Please sign in to comment.