2020-09-22 20:18:02 +02:00
|
|
|
version: "3.0"
|
2021-02-12 14:20:17 +01:00
|
|
|
services:
|
|
|
|
haste-server:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: zneix/haste-server
|
|
|
|
container_name: haste-server
|
|
|
|
network_mode: "bridge"
|
|
|
|
volumes:
|
|
|
|
# Default place to put files, can be removed with other storage system
|
2021-02-14 17:46:12 +01:00
|
|
|
- haste-data:/app/data:rw
|
2021-02-12 14:20:17 +01:00
|
|
|
|
|
|
|
# Create config.js from the example config and make changes
|
2021-02-14 17:46:12 +01:00
|
|
|
- ./config.js:/app/config.js:ro
|
2021-02-12 14:20:17 +01:00
|
|
|
|
|
|
|
# PostgreSQL unix socket connection for use with pg storage and postgres database on host
|
|
|
|
#- /var/run/postgresql:/var/run/postgresql:rw
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:7777:7777/tcp"
|
|
|
|
- "::1:7777:7777/tcp"
|
2021-02-12 15:43:32 +01:00
|
|
|
restart: unless-stopped
|
2020-09-22 20:18:02 +02:00
|
|
|
|
2021-02-12 15:43:32 +01:00
|
|
|
volumes:
|
2020-09-22 20:18:02 +02:00
|
|
|
haste-data:
|