mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-01 01:30:21 +01:00
Manuel
8922925491
* Add .dockerignore * Add docker-compose.yml version number * Use docker-managed volume instead of directory for files Co-authored-by: niekcandaele <22315101+niekcandaele@users.noreply.github.com>
25 lines
No EOL
704 B
YAML
25 lines
No EOL
704 B
YAML
version: "3.0"
|
|
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
|
|
- haste-data:/usr/src/app/data:rw
|
|
|
|
# Create config.js from the example config and make changes
|
|
- ./config.js:/usr/src/app/config.js:ro
|
|
|
|
# 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"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
haste-data: |