mirror of
https://github.com/harness/drone.git
synced 2025-05-05 20:11:36 +08:00

* initial work on local dev env * minor changes on makefile * pre-commit x permission added * readme updated and minor improvments in docker conf
39 lines
765 B
YAML
39 lines
765 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
db:
|
|
image: postgres
|
|
restart: always
|
|
environment:
|
|
POSTGRES_DB: gitness
|
|
POSTGRES_USER: gitness
|
|
POSTGRES_PASSWORD: gitness
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
|
ports:
|
|
- "5432:5432"
|
|
expose:
|
|
- 5432
|
|
volumes:
|
|
- ./init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
|
|
- gitness_data:/var/lib/postgresql/data
|
|
|
|
migration:
|
|
build:
|
|
context: ../db
|
|
dockerfile: ./Dockerfile
|
|
environment:
|
|
DATABASE_URL: postgres://gitness:gitness@db:5432/gitness?sslmode=disable
|
|
depends_on:
|
|
- db
|
|
|
|
redis:
|
|
image: redis:6.0
|
|
container_name: cache
|
|
ports:
|
|
- "6379:6379"
|
|
expose:
|
|
- 6379
|
|
|
|
volumes:
|
|
gitness_data:
|
|
driver: local |