forked from cadia-lvl/LOBE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
40 lines (37 loc) · 1002 Bytes
/
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
version: '3.1'
services:
db:
image: postgres:15
restart: always
container_name: lobe_db
environment:
POSTGRES_PASSWORD: lobe
POSTGRES_USER: lobe
POSTGRES_DB: lobe
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./instance_folder_dev/pgdata:/var/lib/postgresql/data
ports: # this should be commented out in production
- 5432:5432 # this should be commented out in production
# lobe:
# image: docker.greynir.is/lobe
# restart: always
# container_name: lobe
# environment:
# - FLASK_INSTANCE_PATH=/instance_folder
# volumes:
# - ./instance_folder_prod:/instance_folder
# ports:
# - 8000:8000
# # for debugging we change gunicorn entrypoint to include the bind address to 0.0.0.0
# entrypoint:
# [
# "/venv/bin/python",
# "-m",
# "gunicorn",
# "-w",
# "4",
# "--bind",
# "0.0.0.0",
# "lobe:create_app()"
# ]