| 1 | services: |
| 2 | app: |
| 3 | build: |
| 4 | context: ../.. |
| 5 | dockerfile: apps/posts-go/Dockerfile |
| 6 | ports: |
| 7 | - "${PORT:-3000}:${PORT:-3000}" |
| 8 | environment: |
| 9 | - HOST=0.0.0.0 |
| 10 | - PORT=${PORT:-3000} |
| 11 | - POSTS_DB_PATH=/data/posts-go.sqlite |
| 12 | - POSTS_PASSWORD=${POSTS_PASSWORD:-changeme} |
| 13 | - UPLOADS_DIR=/data/uploads |
| 14 | - COOKIE_SECURE=${COOKIE_SECURE:-false} |
| 15 | - SITE_URL=${SITE_URL:-http://localhost:3000} |
| 16 | volumes: |
| 17 | - posts-go-data:/data |
| 18 | restart: unless-stopped |
| 19 | |
| 20 | volumes: |
| 21 | posts-go-data: |