-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 1.06 KB
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
45
46
47
version: '3.8'
services:
database:
image: postgres:14.1-alpine
restart: always
container_name: pg-beehavior
ports:
- 5432:5432
environment:
- POSTGRES_USER=beehavior
- POSTGRES_PASSWORD=beehavior
- POSTGRES_DB=beehavior
volumes:
- db:/var/lib/postgresql/data
# - ./database/pg_hba.conf:/var/lib/postgresql/data/pg_hba.conf
- ./database/sql/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql
- ./database/sql/content.sql:/docker-entrypoint-initdb.d/02-content.sql
# networks:
# - default
# command: postgres -c config_file=/etc/postgresql/postgresql.conf
api:
build:
context: .
dockerfile: Dockerfile
image: beehavior-api:latest
command: gunicorn --bind 0.0.0.0:8080 app:api
container_name: api-beehavior
# networks:
# - default
depends_on:
- database
# links:
# - database
ports:
- 8080:8080
environment:
- APP_PORT=8080
- DB_HOST=pg-beehavior
stdin_open: true
tty: true
volumes:
db:
driver: local