-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (41 loc) · 1.11 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
43
44
services:
web:
build:
context: .
environment:
SECRET_KEY_BASE: M0wBY/H0jPgHjM2ml/wTYn/HKsIopIlsvQvP3MJTXNSptX20f3BcFyjH5MtsFRJW
DATABASE_URL: postgres://kjogvi:kjogvi@database/kjogvi_prod
ORNITHO_DATABASE_URL: postgres://kjogvi:kjogvi@database/ornithologue_prod
PHX_PORT: 5040
# env_file:
# - .env.docker
# command:
ports:
- "5040:4000"
depends_on:
database:
condition: service_healthy
database:
image: bitnami/postgresql:16-debian-12
environment:
POSTGRES_USER: kjogvi
POSTGRES_PASSWORD: kjogvi
POSTGRES_DB: kjogvi_prod
# Temporarily to seed database
ports:
- "5498:5432"
volumes:
- pg_data16:/bitnami/postgresql
configs:
- source: create_ornitho_db
target: /docker-entrypoint-initdb.d/create-ornitho-db.sql
healthcheck:
test: pg_isready -U kjogvi -h 127.0.0.1
interval: 3s
# Declare the volumes that our application uses.
volumes:
pg_data16:
configs:
create_ornitho_db:
content: |
CREATE DATABASE ornithologue_prod WITH OWNER kjogvi;