68540ebcf9
CI / build-and-push (push) Successful in 1m10s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
874 B
YAML
40 lines
874 B
YAML
services:
|
|
web:
|
|
image: gitea.thewrightserver.net/josh/aihostingtycoon/web:latest
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- server
|
|
restart: unless-stopped
|
|
|
|
server:
|
|
image: gitea.thewrightserver.net/josh/aihostingtycoon/server:latest
|
|
ports:
|
|
- "3001:3001"
|
|
environment:
|
|
- DATABASE_URL=postgresql://aitycoon:aitycoon@db:5432/aitycoon
|
|
- PORT=3001
|
|
- CORS_ORIGIN=*
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:17-alpine
|
|
environment:
|
|
- POSTGRES_USER=aitycoon
|
|
- POSTGRES_PASSWORD=aitycoon
|
|
- POSTGRES_DB=aitycoon
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U aitycoon"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
pgdata:
|