-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 858 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:latest
container_name: ${PROJECT_NAME}_db
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
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}
ports:
- "9999:9999"
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_data: