Files
self-host/docker-compose.yaml
T

63 lines
1.5 KiB
YAML

version: "3"
services:
db:
build:
context: ./db
dockerfile: Dockerfile.db
volumes:
- ./data/db:/var/lib/postgresql/data
restart: always
environment:
#- POSTGRES_DB=postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: unsecure
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
brewery:
build: ./services/brewery
command: sh -c "./bin/rails db:create; ./bin/rails db:prepare; ./bin/rails server -e production"
ports:
- "5555:3000"
restart: always
environment:
RAILS_ENV: "production"
SECRET_KEY_BASE: "b21eb384e49d7620a02c6288eb462b0e5dc82038b4d7af563f0f067d4071a3a3"
RAILS_LOG_TO_STDOUT: "true"
RAILS_SERVE_STATIC_FILES: "true"
DATABASE_URL: "postgresql://postgres:unsecure@db:5432/brewery"
depends_on:
- db
timetrials:
build: ./services/timetrials
ports:
- "5000:5000"
restart: always
environment:
POSTGRES_URL: "postgresql://postgres:unsecure@db:5432/timetrials"
TEST_POSTGRES_URL: "postgresql://postgres:unsecure@db:5432/timetrials_test"
SECRET_KEY: 56d580ba17a4a7b07a6810153eb8c20a
depends_on:
- db
reaktor-backend:
build: ./services/reaktor-backend
ports:
- "5050:5050"
restart: always
env_file:
- ./services/reaktor-backend/.env
pumppistatus:
build: ./services/pumppistatus
ports:
- "5550:5550"
#restart: always
env_file:
./services/pumppistatus/.env