-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (26 loc) · 813 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (26 loc) · 813 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
services:
cedric05:
restart: always
environment:
# handle to configure custom user/password/database
- PGDATABASENAME=my_post
- PGUSERNAME=my_post
- PGPASSWD=my_post
volumes:
# handle to run startup script (only runs first time)
- ./startup.sql:/startup.sql
# handle to update `postgres.conf` only works first time
- ./extra_config.conf:/extra_config.conf
# use persistance volume
- 'postgres-data:/var/lib/postgresql'
container_name: postgres-15
ports:
- '5432:5432'
image: 'ghcr.io/cedric05/postgres:dev'
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
postgres-data: