-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
55 lines (52 loc) · 1.21 KB
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
services:
authapi:
image: ghcr.io/thewatergategroups/authapi
command: python -m authapi api
depends_on:
- dbsetup
volumes:
- ./authapi:/app/authapi
- ./templates:/app/templates
ports:
- 8000:8000
env_file:
- .env
dbsetup:
image: ghcr.io/thewatergategroups/authapi
command: python -m authapi db upgrade
volumes:
- ./authapi:/app/authapi
env_file:
- .env
depends_on:
- db
db:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
healthcheck:
test: pg_isready -U postgres -d postgres
interval: 10s
timeout: 3s
retries: 3
volumes:
- ./pg_data:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4
depends_on:
- db
restart: always
profiles:
- pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: postgres
PGADMIN_LISTEN_PORT: 8080
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
volumes:
- ./pgadmin-data:/var/lib/pgadmin
network_mode: host