39 lines
905 B
YAML
39 lines
905 B
YAML
services:
|
|
warren:
|
|
depends_on:
|
|
- 'postgres'
|
|
image: 'warren:latest'
|
|
container_name: 'warren'
|
|
build: '.'
|
|
ports:
|
|
- '8081:8080'
|
|
restart: 'unless-stopped'
|
|
networks:
|
|
- 'warren-net'
|
|
environment:
|
|
- 'SERVER_ADDRESS=0.0.0.0'
|
|
- 'SERVER_PORT=8080'
|
|
- 'DATABASE_URL=postgres://postgres:pg@warren-postgres:5432'
|
|
- 'DATABASE_NAME=warren'
|
|
- 'SERVE_DIRECTORY=/serve'
|
|
- 'CORS_ALLOW_ORIGIN=http://localhost:8081'
|
|
- 'LOG_LEVEL=debug'
|
|
volumes:
|
|
- './backend/serve:/serve:rw'
|
|
postgres:
|
|
image: 'postgres:17'
|
|
container_name: 'warren-db'
|
|
hostname: 'warren-postgres'
|
|
networks:
|
|
- 'warren-net'
|
|
volumes:
|
|
- './postgres-data:/var/lib/postgresql/data'
|
|
environment:
|
|
- 'POSTGRES_PASSWORD=pg'
|
|
ports:
|
|
- '5432:5432/tcp'
|
|
networks:
|
|
warren-net:
|
|
name: 'warren-net'
|
|
external: false
|