2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.env
|
||||
data/
|
||||
36
docker-compose.yaml
Normal file
36
docker-compose.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
services:
|
||||
forest:
|
||||
image: docker.io/kasperhermansen/forest-server:${FOREST_IMAGE_VERSION:-main}
|
||||
restart: always
|
||||
env_file: ".env"
|
||||
command: |
|
||||
/app/forest-server serve
|
||||
ports:
|
||||
- "4040:4040"
|
||||
environment:
|
||||
RUST_LOG: "forest=debug,info"
|
||||
FOREST_HOST: 0.0.0.0:4040
|
||||
networks:
|
||||
- public
|
||||
- internal
|
||||
depends_on:
|
||||
- "postgres"
|
||||
|
||||
postgres:
|
||||
image: postgres:18
|
||||
restart: always
|
||||
shm_size: 128mb
|
||||
env_file: ".env"
|
||||
networks:
|
||||
- internal
|
||||
# ports:
|
||||
# - "5432:5432"
|
||||
volumes:
|
||||
- ./data/postgres/18:/var/lib/postgresql/18/docker
|
||||
environment:
|
||||
POSTGRES_USER: forest
|
||||
POSTGRES_DB: forest
|
||||
|
||||
networks:
|
||||
public:
|
||||
internal:
|
||||
Reference in New Issue
Block a user