-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
52 lines (48 loc) · 1.29 KB
/
compose.yml
File metadata and controls
52 lines (48 loc) · 1.29 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
services:
tcpapi:
build: ./Server
ports:
- "9000:9000"
- "5000:5000"
environment:
ConnectionStrings__PostgreSQL: "Host=postgres;Port=5432;Database=clamshell;Username=postgres;Password=yourpassword"
ASPNETCORE_URLS: "http://+:5000"
XCHACHA20POLY1305_KEY: ${XCHACHA20POLY1305_KEY}
XCHACHA20POLY1305_NONCE: ${XCHACHA20POLY1305_NONCE}
TCP_HOST: "0.0.0.0"
TCP_PORT: "9000"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: clamshell
POSTGRES_USER: postgres
POSTGRES_PASSWORD: yourpassword
volumes:
- postgres_data:/var/lib/postgresql/data
- ./Server/database/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
node:
build: ./Node
environment:
XCHACHA20POLY1305_KEY: ${XCHACHA20POLY1305_KEY}
XCHACHA20POLY1305_NONCE: ${XCHACHA20POLY1305_NONCE}
TCP_HOST: tcpapi
TCP_PORT: "9000"
restart: unless-stopped
depends_on:
- tcpapi
website:
build: ./website
restart: unless-stopped
ports:
- "8080:8080"
volumes:
postgres_data: