vocabulary/docker-compose.yml

24 lines
647 B
YAML

# MySQL is not included, the api connects to the existing server.
# Copy .env.example to .env and set the values first.
services:
api:
build: ./api
restart: unless-stopped
ports:
- "8002:8002"
environment:
SPRING_DATASOURCE_URL: ${DB_URL:?set DB_URL in .env}
SPRING_DATASOURCE_USERNAME: ${DB_USERNAME:?set DB_USERNAME in .env}
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD:?set DB_PASSWORD in .env}
web:
build:
context: ./web
args:
NEXT_PUBLIC_API_URL: ${API_URL:-https://api.mmkilic.com/api-vocab}
restart: unless-stopped
ports:
- "80:80"
depends_on:
- api