Added .env file
parent
2e27fb0239
commit
290fa36051
|
@ -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=
|
|
@ -17,28 +17,14 @@ services:
|
||||||
timeout: '5s'
|
timeout: '5s'
|
||||||
start_period: '10s'
|
start_period: '10s'
|
||||||
|
|
||||||
environment:
|
env_file:
|
||||||
# Allow all Gitea users to use it
|
- '.env'
|
||||||
- '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}'
|
|
||||||
networks:
|
networks:
|
||||||
- 'default'
|
- 'default'
|
||||||
- 'nginx'
|
- 'nginx'
|
||||||
ports:
|
ports:
|
||||||
# Used to communicate with the agents (I think)
|
# Used to communicate with the agents (I think)
|
||||||
- '9000:9000'
|
- '9000:9000'
|
||||||
# Also needs port 8000 for web UI (so proxy_pass to 8000)
|
|
||||||
volumes:
|
volumes:
|
||||||
- 'server-data:/var/lib/drone'
|
- 'server-data:/var/lib/drone'
|
||||||
|
|
||||||
|
@ -58,7 +44,6 @@ services:
|
||||||
- 'POSTGRES_DB=woodpecker'
|
- 'POSTGRES_DB=woodpecker'
|
||||||
- 'POSTGRES_USER=woodpecker'
|
- 'POSTGRES_USER=woodpecker'
|
||||||
- 'POSTGRES_PASSWORD=woodpecker'
|
- 'POSTGRES_PASSWORD=woodpecker'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- 'db-data:/var/lib/postgresql/data'
|
- 'db-data:/var/lib/postgresql/data'
|
||||||
|
|
||||||
|
@ -70,7 +55,8 @@ services:
|
||||||
command: 'agent'
|
command: 'agent'
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- 'app'
|
app:
|
||||||
|
condition: 'service_healthy'
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- 'DRONE_SERVER=${DRONE_HOST}'
|
- 'DRONE_SERVER=${DRONE_HOST}'
|
||||||
|
|
Reference in New Issue