51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
|
|
PostgreSQL:
|
|
image: postgres:alpine
|
|
container_name: PostgreSQL
|
|
ports:
|
|
- 5432:5432
|
|
restart: always
|
|
env_file: .env
|
|
volumes:
|
|
- "$ROOT/postgresql:/var/lib/postgresql/data"
|
|
- "./setup/clustering/setup/postgres/start.sh:/docker-entrypoint-initdb.d/start.sh"
|
|
- ./setup/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
|
|
adminer:
|
|
image: adminer
|
|
container_name: adminer
|
|
restart: always
|
|
env_file: .env
|
|
depends_on:
|
|
- PostgreSQL
|
|
ports:
|
|
- 8080:8080
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
container_name: redis
|
|
restart: always
|
|
volumes:
|
|
- "$ROOT/redis:/data"
|
|
|
|
web:
|
|
build: ./setup/web/.
|
|
container_name: web
|
|
command: npm run start
|
|
volumes:
|
|
- /user/app
|
|
ports:
|
|
- 9000:9000
|
|
depends_on:
|
|
- PostgreSQL
|
|
- redis
|
|
environment:
|
|
- HOST=${HOST}
|
|
- DATABASE=${POSTGRES_DB}
|
|
- USER=${POSTGRES_USER}
|
|
- PASSWORD=${POSTGRES_PASSWORD}
|
|
- DATABASE_URL=${DATABASE_URL}
|