2023-06-29 14:13:57 +00:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
nats:
|
|
|
|
container_name: fblx-nats
|
|
|
|
image: nats
|
|
|
|
ports:
|
|
|
|
- 4222:4222
|
|
|
|
- 6222:6222
|
|
|
|
- 8222:8222
|
2023-06-29 17:41:36 +00:00
|
|
|
networks:
|
|
|
|
- fblx
|
2023-06-29 14:13:57 +00:00
|
|
|
postgres:
|
2023-06-29 17:41:36 +00:00
|
|
|
container_name: fblx-postgres
|
2023-06-29 14:13:57 +00:00
|
|
|
image: postgres:15-alpine
|
|
|
|
environment:
|
2023-07-22 09:01:26 +00:00
|
|
|
- POSTGRES_MULTIPLE_DATABASES=auth,catalog,game,player,server,session,bank,assets
|
2023-06-29 14:13:57 +00:00
|
|
|
- POSTGRES_USER=freeblox
|
|
|
|
- POSTGRES_PASSWORD=FREEBLOXDataBaseDEV@123
|
|
|
|
volumes:
|
|
|
|
- ./database:/var/lib/postgresql/data
|
2023-06-29 17:41:36 +00:00
|
|
|
- ./docker/postgres:/docker-entrypoint-initdb.d
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
auth:
|
|
|
|
container_name: fblx-auth
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
- SERVICE=auth
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
- POSTGRES_HOST=postgres
|
|
|
|
- POSTGRES_USER=freeblox
|
|
|
|
- POSTGRES_PASSWORD=FREEBLOXDataBaseDEV@123
|
|
|
|
- PRIVATE_KEY_FILE=private/jwt.private.pem
|
|
|
|
- PUBLIC_KEY_FILE=private/jwt.public.pem
|
2023-06-30 19:48:24 +00:00
|
|
|
- SECRET_KEY=mkt9Hngcmhbd9wX4EzGbGysDWzCo793XvvswOS+wolTVM83I1K2b/j41WwsCfsv1iS901N2rTHu2hZHbsYO3RQ==
|
2023-06-29 17:41:36 +00:00
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
|
|
|
- ./private:/usr/src/app/private
|
|
|
|
catalog:
|
|
|
|
container_name: fblx-catalog
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
- SERVICE=catalog
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
- POSTGRES_HOST=postgres
|
|
|
|
- POSTGRES_USER=freeblox
|
|
|
|
- POSTGRES_PASSWORD=FREEBLOXDataBaseDEV@123
|
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
|
|
|
game:
|
|
|
|
container_name: fblx-game
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
- SERVICE=game
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
- POSTGRES_HOST=postgres
|
|
|
|
- POSTGRES_USER=freeblox
|
|
|
|
- POSTGRES_PASSWORD=FREEBLOXDataBaseDEV@123
|
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
|
|
|
player:
|
|
|
|
container_name: fblx-player
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
- SERVICE=player
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
- POSTGRES_HOST=postgres
|
|
|
|
- POSTGRES_USER=freeblox
|
|
|
|
- POSTGRES_PASSWORD=FREEBLOXDataBaseDEV@123
|
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
|
|
|
server:
|
|
|
|
container_name: fblx-server
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
- SERVICE=server
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
- POSTGRES_HOST=postgres
|
|
|
|
- POSTGRES_USER=freeblox
|
|
|
|
- POSTGRES_PASSWORD=FREEBLOXDataBaseDEV@123
|
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
|
|
|
session:
|
|
|
|
container_name: fblx-session
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
- SERVICE=session
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
- POSTGRES_HOST=postgres
|
|
|
|
- POSTGRES_USER=freeblox
|
|
|
|
- POSTGRES_PASSWORD=FREEBLOXDataBaseDEV@123
|
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
2023-07-22 09:01:26 +00:00
|
|
|
bank:
|
|
|
|
container_name: fblx-bank
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
- SERVICE=bank
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
- POSTGRES_HOST=postgres
|
|
|
|
- POSTGRES_USER=freeblox
|
|
|
|
- POSTGRES_PASSWORD=FREEBLOXDataBaseDEV@123
|
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
|
|
|
assets:
|
|
|
|
container_name: fblx-assets
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
- SERVICE=assets
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
- POSTGRES_HOST=postgres
|
|
|
|
- POSTGRES_USER=freeblox
|
|
|
|
- POSTGRES_PASSWORD=FREEBLOXDataBaseDEV@123
|
2023-07-23 08:12:21 +00:00
|
|
|
- S3_ENDPOINT=http://minio:9000
|
|
|
|
- S3_BUCKET=freeblox-assets
|
|
|
|
- S3_REGION=eu-central-1
|
|
|
|
- AWS_ACCESS_KEY_ID=freeblox@freeblox.gg
|
|
|
|
- AWS_SECRET_ACCESS_KEY=password
|
2023-07-22 09:01:26 +00:00
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
2023-07-27 18:23:37 +00:00
|
|
|
render:
|
|
|
|
container_name: fblx-render
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.render.dev
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
2023-06-29 17:41:36 +00:00
|
|
|
web-service:
|
|
|
|
container_name: fblx-web-service
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
- SERVICE=freeblox-web-service
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
ports:
|
|
|
|
- 4555:3000
|
|
|
|
environment:
|
|
|
|
- NATS_ENTRYPOINT=nats://nats:4222
|
|
|
|
volumes:
|
|
|
|
- ./apps:/usr/src/app/apps
|
|
|
|
- ./libs:/usr/src/app/libs
|
|
|
|
pgadmin:
|
|
|
|
container_name: fblx-pgadmin
|
|
|
|
image: dpage/pgadmin4
|
|
|
|
ports:
|
|
|
|
- 4556:80
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
volumes:
|
|
|
|
- fblx-pgadmin:/var/lib/pgadmin
|
|
|
|
environment:
|
|
|
|
- PGADMIN_DEFAULT_EMAIL=freeblox@freeblox.gg
|
|
|
|
- PGADMIN_DEFAULT_PASSWORD=password
|
2023-07-23 08:12:21 +00:00
|
|
|
minio:
|
|
|
|
container_name: fblx-minio
|
|
|
|
image: minio/minio
|
|
|
|
ports:
|
|
|
|
- '9000:9000'
|
|
|
|
- '9001:9001'
|
|
|
|
networks:
|
|
|
|
- fblx
|
|
|
|
environment:
|
|
|
|
- MINIO_ROOT_USER=freeblox@freeblox.gg
|
|
|
|
- MINIO_ROOT_PASSWORD=password
|
|
|
|
volumes:
|
|
|
|
- ./storage:/data
|
|
|
|
command: server --console-address ":9001" /data
|
2023-06-29 17:41:36 +00:00
|
|
|
networks:
|
|
|
|
fblx:
|
|
|
|
volumes:
|
|
|
|
fblx-pgadmin:
|