SimpleNotes/docker-compose.prod.yml

34 lines
772 B
YAML

version: '2.2'
services:
nginx:
image: nginx:latest
container_name: notes-nginx
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Brussels
volumes:
- ./frontend/dist:/usr/share/nginx/html
- ./nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
ports:
- 80:80
- 443:443
depends_on:
- api
api:
build: ./api
container_name: notes-api
env_file:
- .env
environment:
- TZ=Europe/Brussels
- MYSQL_HOST=db
depends_on:
db:
condition: service_healthy