ci: sync production compose file
Some checks failed
deploy-socialize / image (push) Successful in 29s
deploy-socialize / deploy (push) Failing after 7s

This commit is contained in:
2026-05-06 16:16:55 -04:00
parent 419dbf0185
commit f1da3a44de
3 changed files with 50 additions and 1 deletions

47
deploy/compose.yml Normal file
View File

@@ -0,0 +1,47 @@
services:
db:
image: postgres:16
restart: unless-stopped
env_file:
- .env
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 20
networks:
- internal
api:
image: git.mapachotes.com/jbourdon/socialize-api:${SOCIALIZE_IMAGE_TAG}
restart: unless-stopped
env_file:
- .env
depends_on:
db:
condition: service_healthy
volumes:
- ./blob-storage:/app/App_Data/blob-storage
expose:
- "8080"
networks:
- internal
web:
image: git.mapachotes.com/jbourdon/socialize-web:${SOCIALIZE_IMAGE_TAG}
restart: unless-stopped
depends_on:
- api
ports:
- "127.0.0.1:8080:80"
networks:
- internal
networks:
internal: