-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
42 lines (40 loc) · 1.07 KB
/
docker-compose.yaml
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
services:
hyperion-db:
image: postgres
container_name: hyperion-db
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
PGTZ: ${POSTGRES_TZ}
volumes:
- ./hyperion_db_data:/var/lib/postgresql/data:Z
hyperion-redis:
image: redis
container_name: hyperion-redis
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASSWORD}
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
hyperion-app:
image: hyperion-app
container_name: hyperion-app
restart: unless-stopped
depends_on:
hyperion-db:
condition: service_healthy
hyperion-redis:
condition: service_started
ports:
- 8000:8000
volumes:
- ./logs:/app/logs:Z
- ./data:/app/data:Z
- ./.env:/app/.env:Z
- ./firebase.json:/app/firebase.json:Z