-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (36 loc) · 872 Bytes
/
compose.yaml
File metadata and controls
39 lines (36 loc) · 872 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
36
37
38
39
services:
fastzero_database:
image: postgres
# env_file:
# - .env
volumes:
- pgdata:/var/lib/postgresql/data
environment:
# POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_USER: app_user
# POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_DB: app_db
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PASSWORD: app_password
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 5s
timeout: 5s
retries: 10
fastzero_app:
image: fastzero_app
entrypoint: ./entrypoint.sh
build: .
# env_file:
# - .env
ports:
- "8000:8000"
depends_on:
- fastzero_database
environment:
# DATABASE_URL: ${DATABASE_URL}
DATABASE_URL: postgresql+psycopg://app_user:app_password@fastzero_database:5432/app_db
volumes:
pgdata: