-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1019 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '2'
volumes:
postgres_data: {}
postgres_backup: {}
nginx_tls: {}
services:
postgres:
build: ./docker/postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_backup:/backups
environment:
- POSTGRES_DB=agentless
- POSTGRES_USER=agentless
- POSTGRES_PASSWORD=agentless
restart: always
flask:
build:
context: .
dockerfile: ./docker/flask/Dockerfile
depends_on:
- postgres
- redis
command: /gunicorn.sh
user: flask
environment:
- POSTGRES_USER=agentless
- POSTGRES_PASSWORD=agentless
- DATABASE_URI=postgres://agentless:agentless@postgres/agentless
- TINYAUTH_ACCESS_KEY_ID=gatekeeper
- TINYAUTH_SECRET_ACCESS_KEY=keymaster
- TINYAUTH_ENDPOINT=http://tinyauth:5000/
restart: always
nginx:
build: ./docker/nginx
volumes:
- nginx_tls:/etc/nginx/external/
depends_on:
- flask
- prometheus
ports:
- "0.0.0.0:443:443"
restart: always