-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 926 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 926 Bytes
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
version: '3.8'
services:
postgres:
image: postgres:18.4
container_name: ${PROJECT_NAME}_db
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- ./pg_data:/var/lib/postgresql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 5
awesome-server:
image: savarez/awesome-server:latest
container_name: ${PROJECT_NAME}_awesome
environment:
AWP_DB_HOST: ${PROJECT_NAME}_db
AWP_DB_NAME: ${POSTGRES_DB}
AWP_DB_USER: ${POSTGRES_USER}
AWP_DB_PASSWORD: ${POSTGRES_PASSWORD}
AWP_MCP_TOKEN: ${AWP_MCP_TOKEN:-}
ports:
- "127.0.0.1:9999:9999"
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy