2024-08-28 07:49:09 +00:00
|
|
|
services:
|
|
|
|
broker-service:
|
|
|
|
build:
|
|
|
|
context: ./../broker-service/
|
|
|
|
dockerfile: ./../broker-service/broker-service.dockerfile
|
|
|
|
restart: always
|
|
|
|
ports:
|
2024-08-29 11:51:52 +00:00
|
|
|
- "8080:80"
|
2024-08-28 07:49:09 +00:00
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
2024-08-28 12:24:16 +00:00
|
|
|
|
|
|
|
authentication-service:
|
|
|
|
build:
|
|
|
|
context: ./../authentication-service/
|
|
|
|
dockerfile: ./../authentication-service/authentication-service.dockerfile
|
|
|
|
ports:
|
2024-08-29 11:51:52 +00:00
|
|
|
- "8081:80"
|
2024-08-28 12:24:16 +00:00
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
environment:
|
|
|
|
DSN: "host=postgres port=5432 user=postgres password=password dbname=users timezone=UTC connect_timeout=5"
|
|
|
|
|
2024-08-29 11:57:16 +00:00
|
|
|
logger-service:
|
|
|
|
build:
|
|
|
|
context: ./../logger-service/
|
|
|
|
dockerfile: ./../logger-service/logger-service.dockerfile
|
|
|
|
restart: always
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
|
2024-09-02 18:48:30 +00:00
|
|
|
mail-service:
|
|
|
|
build:
|
|
|
|
context: ./../mail-service/
|
|
|
|
dockerfile: ./../mail-service/mail-service.dockerfile
|
|
|
|
restart: always
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
|
2024-08-28 12:24:16 +00:00
|
|
|
postgres:
|
2024-09-02 16:25:28 +00:00
|
|
|
image: postgres:16.4-alpine
|
2024-08-28 12:24:16 +00:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
restart: always
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: password
|
|
|
|
POSTGRES_DB: users
|
|
|
|
volumes:
|
|
|
|
- ./db-data/postgres:/var/lib/postgresql/data
|
|
|
|
|
2024-08-29 11:48:47 +00:00
|
|
|
mongo:
|
|
|
|
image: mongo
|
|
|
|
ports:
|
|
|
|
- "27017:27017"
|
|
|
|
environment:
|
2024-09-01 05:39:42 +00:00
|
|
|
MONGO_INITDB_ROOT_USERNAME: admin
|
|
|
|
MONGO_INITDB_ROOT_PASSWORD: password
|
2024-08-29 11:48:47 +00:00
|
|
|
volumes:
|
|
|
|
- ./db-data/mongo:/data/db
|
|
|
|
|
2024-09-02 16:25:28 +00:00
|
|
|
mailhog:
|
|
|
|
image: mailhog/mailhog
|
|
|
|
ports:
|
|
|
|
- "1025:1025"
|
|
|
|
- "8025:8025"
|
|
|
|
|
|
|
|
rabbitmq:
|
|
|
|
image: 'rabbitmq:3.13-alpine'
|
|
|
|
ports:
|
|
|
|
- "5672:5672"
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
volumes:
|
|
|
|
- ./db-data/rabbitmq:/var/lib/rabbitmq/
|
|
|
|
|
2024-08-28 12:24:16 +00:00
|
|
|
adminer:
|
|
|
|
image: adminer
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8090:8080
|
2024-08-31 20:56:25 +00:00
|
|
|
|
|
|
|
mongo-express:
|
|
|
|
image: mongo-express
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8091:8081
|
|
|
|
environment:
|
|
|
|
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
|
|
|
|
ME_CONFIG_MONGODB_ADMINPASSWORD: password
|
2024-09-01 05:39:42 +00:00
|
|
|
ME_CONFIG_MONGODB_URL: mongodb://admin:password@mongo:27017/
|
2024-08-31 20:56:25 +00:00
|
|
|
ME_CONFIG_BASICAUTH: false
|