udemy-go-microservices/project/docker-compose.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

services:
broker-service:
build:
context: ./../broker-service/
dockerfile: ./../broker-service/broker-service.dockerfile
restart: always
ports:
- "8080:4000"
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:
- "8081:4000"
deploy:
mode: replicated
replicas: 1
environment:
DSN: "host=postgres port=5432 user=postgres password=password dbname=users timezone=UTC connect_timeout=5"
postgres:
image: postgres
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:
MONGO_INITDB_DATABASE: logs
MONGO_INITDB_USERNAME: admin
MONGO_INITDB_PASSWORD: password
volumes:
- ./db-data/mongo:/data/db
2024-08-28 12:24:16 +00:00
adminer:
image: adminer
restart: always
ports:
- 8090:8080