Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
📦 update docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhao committed Apr 30, 2023
1 parent 3309184 commit 7a8b17e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ services:
- '6379:6379'

saltynote:
image: zhouhao/saltynote-service:latest
container_name: saltynote-service
image: zhouhao/saltynote-service:0.4.0
container_name: saltynote-service-mariadb
ports:
- "8888:8888"
restart: always
Expand Down
41 changes: 41 additions & 0 deletions script/docker-compose-mongo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: "3.8"

services:
mongodb:
image: mongo:6-jammy
container_name: mongodb
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: saltynote
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: saltynote
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db

redis:
image: 'redis:7.0-alpine'
container_name: redis2
command: redis-server --requirepass 88888888
ports:
- '6379:6379'

saltynote:
image: zhouhao/saltynote-service:0.5.0
container_name: saltynote-service-mongo
ports:
- "8888:8888"
restart: always
depends_on:
- mongodb
- redis
environment:
SPRING_DATA_MONGODB_HOST: mongodb
SPRING_DATA_REDIS_HOST: redis2
volumes:
- log_data:/tmp

volumes:
mongo_data:
log_data:

0 comments on commit 7a8b17e

Please sign in to comment.