-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1022 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1022 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
48
49
50
51
services:
devel:
image: $USER-flora-devel
pull_policy: never
build:
dockerfile: Dockerfile
args:
- USER=${USER}
- UID=${UID:-1000}
- GID=${GID:-1000}
ports:
- "8084:8084"
volumes:
- database-data:/flora-server/pgdata/
- .:/flora-server:Z
links:
- flora-database
command: sleep infinity
profiles:
- local
depends_on:
- flora-database
flora-database:
image: docker.io/library/postgres:17.9
container_name: flora-database
user: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
expose:
- "5432"
env_file:
- database.env
volumes:
- database-data:/var/lib/postgresql/data
profiles:
- local
prometheus:
image: prom/prometheus
volumes:
- "./prometheus.yml:/etc/prometheus/prometheus.yml"
ports:
- 9090:9090
volumes:
database-data: