SimpleNotes/docker-compose.yml

35 lines
752 B
YAML

version: '2.2'
services:
db:
image: mariadb
container_name: notes-mariadb
env_file:
- .env
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Brussels
ports:
# This is only for testing
- 3306:3306
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
api:
build: ./api
container_name: notes-api
ports:
- 8081:8081
env_file:
- .env
environment:
- TZ=Europe/Brussels
- MYSQL_HOST=db
depends_on:
db:
condition: service_healthy