-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
52 lines (48 loc) · 1.18 KB
/
docker-compose.yml
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
48
49
50
51
52
version: "3.9"
services:
bookmark:
image: bookmarkorg/bookmark:latest
container_name: bookmark-app
restart: on-failure
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
BOOKMARK_ARCHIVE_DELAY: ${BOOKMARK_ARCHIVE_DELAY}
MIX_ENV: prod
depends_on:
- bookmark-db
- archivebox
ports:
- '80:4000'
env_file:
- base.env
volumes:
- ./priv/static/archive:/app/lib/bookmark-0.1.0/priv/static/archive
bookmark-db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=bookmark_dev
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
nostr-client:
image: bookmarkorg/nostr-client:latest
ports:
- '5005:5005'
archivebox:
image: bookmarkorg/archivebox-server:latest
ports:
- '5001:5000'
extra_hosts:
- "host.docker.internal:host-gateway"
# TODO: Archivebox Server must take environment variables to enable these properties
# environment:
# - PROPERTY=VALUE
volumes:
- ./priv/static/archive:/app/archivebox
volumes:
db:
driver: local