Files
nowdatabase/docker-compose.anon.yml
T

41 lines
950 B
YAML

# For running with anonymous data, for e2e tests in local or github actions
services:
frontend:
container_name: nowdb-frontend-anon
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 127.0.0.1:5173:5173
env_file: .anon.env
backend:
container_name: nowdb-backend-anon
depends_on:
db-anon:
condition: service_healthy
env_file: .anon.env
ports:
- 127.0.0.1:4000:4000
build:
context: .
dockerfile: ./backend/Dockerfile
db-anon:
container_name: nowdb-db-anon
image: mariadb:11.4.3
env_file: .anon.env
volumes:
- ./test_data/:/docker-entrypoint-initdb.d
- nowdb-db-anon:/var/lib/mysql/data
ports:
- 127.0.0.1:3306:3306
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
volumes:
nowdb-db-anon: