-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
64 lines (61 loc) · 2.13 KB
/
Copy pathcompose.prod.yml
File metadata and controls
64 lines (61 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: celleseum
services:
postgres:
image: postgres:16-alpine
container_name: celleseum-postgres
restart: unless-stopped
environment:
- POSTGRES_DB=${DATABASE}
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
volumes:
- /opt/celleseum/postgres-data:/var/lib/postgresql/data # persistent host path
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 3s
retries: 20
apiservice:
depends_on:
postgres:
condition: service_healthy
image: ghcr.io/${GITHUB_OWNER:-your-gh-user-or-org}/celleseum-apiservice:latest
container_name: celleseum-apiservice
restart: unless-stopped
ports:
- "5001:8080" # host:container
environment:
- ASPNETCORE_URLS=http://0.0.0.0:8080
- DatabaseHost=postgres
- DatabasePort=5432
- Database=${DATABASE}
- DatabaseUser=${DATABASE_USER}
- DatabasePassword=${DATABASE_PASSWORD}
web:
image: ghcr.io/${GITHUB_OWNER:-your-gh-user-or-org}/celleseum-web:latest
container_name: celleseum-web
restart: unless-stopped
depends_on:
- apiservice
ports:
- "5000:8080"
environment:
- ASPNETCORE_URLS=http://0.0.0.0:8080
- Api__BaseAddress=http://apiservice:8080 # critical: container-to-container URL
- DatabaseHost=postgres
- DatabasePort=5432
- Database=${DATABASE}
- DatabaseUser=${DATABASE_USER}
- DatabasePassword=${DATABASE_PASSWORD}
- Authentication__Google__ClientId=${GOOGLE_CLIENT_ID}
- Authentication__Google__ClientSecret=${GOOGLE_CLIENT_SECRET}
- Email__Smtp__Host=${EMAIL__SMTP__HOST}
- Email__Smtp__Port=${EMAIL__SMTP__PORT}
- Email__Smtp__Username=${EMAIL__SMTP__USERNAME}
- Email__Smtp__Password=${EMAIL__SMTP__PASSWORD}
- Email__Smtp__UseSsl=${EMAIL__SMTP__USESSL}
- Email__Smtp__FromAddress=${EMAIL__SMTP__FROMADDRESS}
- Email__Smtp__FromName=${EMAIL__SMTP__FROMNAME}
networks:
default:
name: celleseum-net