-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathdocker-compose.yml
61 lines (58 loc) · 1.18 KB
/
docker-compose.yml
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
52
53
54
55
56
57
58
59
60
61
services:
server:
image: ghcr.io/flora-pm/flora-server:latest
ports:
- "8084:8084"
volumes:
- database-data:/flora-server/pgdata/
- .:/flora-server:Z
links:
- database
command: sleep infinity
profiles:
- local
depends_on:
- database
dev-server:
ports:
- "8084:8084"
build:
dockerfile: Dockerfile
args:
- USER=${USER}
- UID=${UID:-1000}
- GID=${GID:-1000}
volumes:
- database-data:/flora-server/pgdata/
- .:/flora-server:Z
links:
- database
command: sleep infinity
profiles:
- dev
depends_on:
- database
database:
# Pinned postgres:14.7
image: "postgres@sha256:577d48a963bdd16e8b93e853aa830c78fc4622ebe9717bc95f6736d9aa5003e3"
container_name: 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
- dev
restart: always
volumes:
database-data: