Added .env file

woodpecker
Jef Roosens 2021-04-23 23:35:30 +02:00
parent 2e27fb0239
commit 290fa36051
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
2 changed files with 19 additions and 18 deletions

View File

@ -0,0 +1,15 @@
# Allow all users to use it
DRONE_OPEN=true
# Drone needs to know its own location
DRONE_HOST=
# Shared secret to communicate with agents
DRONE_SECRET=
# Tell Drone to use postgres
DRONE_DATABASE_DRIVER=postgres
DRONE_DATABASE_DATASOURCE=postgres://woodpecker:woodpecker@db:5432/woodpecker?sslmode=disable
# These are just a guess based on the documentation
DRONE_GITEA=true
DRONE_GITEA_CLIENT=
DRONE_GITEA_SECRET=

View File

@ -17,28 +17,14 @@ services:
timeout: '5s'
start_period: '10s'
environment:
# Allow all Gitea users to use it
- 'DRONE_OPEN=true'
# Drone needs to know its own location
- 'DRONE_HOST=${DRONE_HOST}'
# Shared secret to communicate with agents
- 'DRONE_SECRET=${DRONE_SECRET}'
# Tell Drone to use postgres
- 'DRONE_DATABASE_DRIVER=postgres'
- 'DRONE_DATABASE_DATASOURCE=postgres://woodpecker:woodpecker@db:5432/woodpecker?sslmode=disable'
# These are just a guess based on the documentation
- 'DRONE_GITEA=true'
- 'DRONE_GITEA_CLIENT=${GITEA_CLIENT}'
- 'DRONE_GITEA_SECRET=${GITEA_SECRET}'
env_file:
- '.env'
networks:
- 'default'
- 'nginx'
ports:
# Used to communicate with the agents (I think)
- '9000:9000'
# Also needs port 8000 for web UI (so proxy_pass to 8000)
volumes:
- 'server-data:/var/lib/drone'
@ -58,7 +44,6 @@ services:
- 'POSTGRES_DB=woodpecker'
- 'POSTGRES_USER=woodpecker'
- 'POSTGRES_PASSWORD=woodpecker'
volumes:
- 'db-data:/var/lib/postgresql/data'
@ -70,7 +55,8 @@ services:
command: 'agent'
depends_on:
- 'app'
app:
condition: 'service_healthy'
environment:
- 'DRONE_SERVER=${DRONE_HOST}'