basic config
This commit is contained in:
59
docker-compose.yml
Normal file
59
docker-compose.yml
Normal file
@ -0,0 +1,59 @@
|
||||
services:
|
||||
hydra:
|
||||
image: oryd/hydra:v2.3.0
|
||||
command: serve -c /etc/config/hydra/hydra.yml all --dev
|
||||
depends_on:
|
||||
- hydra-migrate
|
||||
- postgres
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./config/hydra
|
||||
target: /etc/config/hydra
|
||||
networks:
|
||||
- appnet
|
||||
environment:
|
||||
- DSN=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
|
||||
hydra-migrate:
|
||||
image: oryd/hydra:v2.3.0
|
||||
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./config/hydra
|
||||
target: /etc/config/hydra
|
||||
networks:
|
||||
- appnet
|
||||
environment:
|
||||
- DSN=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
|
||||
depends_on:
|
||||
- postgres
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./config/nginx/nginx.conf
|
||||
target: /etc/nginx/conf.d/default.conf
|
||||
read_only: true
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
depends_on:
|
||||
- hydra
|
||||
- front
|
||||
networks:
|
||||
- appnet
|
||||
postgres:
|
||||
image: postgres:17
|
||||
environment:
|
||||
- POSTGRES_USER=hydra
|
||||
- POSTGRES_PASSWORD=secret
|
||||
- POSTGRES_DB=hydra
|
||||
networks:
|
||||
- appnet
|
||||
front:
|
||||
image: git.logidex.ru/aserbin/logidex-id-frontend:latest
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
networks:
|
||||
- appnet
|
||||
networks:
|
||||
appnet:
|
||||
Reference in New Issue
Block a user