1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
services: app: build: context: ./ target: prod restart: unless-stopped env_file: ./.env depends_on: - db ports: - 127.0.0.1:8313:80 db: image: postgres:16 restart: unless-stopped env_file: ./.env volumes: - ./data/db:/var/lib/postgresql/data