-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (39 loc) · 1.1 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
# ponylib docker-compose example
# copy ponylib.env.example to ponylib.env and edit it before first run
version: "3.5"
services:
ponylib:
image: ghcr.io/maizy/ponylib:v2.0.7
container_name: ponylib
command: ["web-ui"]
ports:
- "55387:55387"
depends_on:
db:
condition: service_healthy
env_file:
- ./ponylib.env
restart: unless-stopped
# uncomment and add paths to your libraries in `- local_path:mount_path` format
# mount path doesn't metter, use some simple unique name
#volumes:
# - /path/to/your-lib:/data/lib
# - /path/to/your-lib-2:/data/lib2
# - /path/to/archive.zip:/data/lib3.zip
db:
image: postgres:12.6
container_name: ponylib_db
env_file:
- ./ponylib.env
volumes:
# change ./data/db to any other path if you want to store data in different location
- ./data/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "ponylib"]
start_period: 30s
interval: 10s
timeout: 2s
restart: unless-stopped
networks:
default:
name: ponylib_network