2022-03-02 16:44:11 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2022-03-03 08:35:13 +00:00
|
|
|
postgres:
|
2022-03-02 16:44:11 +00:00
|
|
|
image: postgres
|
2022-03-03 08:35:13 +00:00
|
|
|
container_name: postgres
|
2022-03-02 16:44:11 +00:00
|
|
|
ports:
|
2022-03-05 13:36:38 +00:00
|
|
|
- 5432:5432
|
2022-03-03 08:35:13 +00:00
|
|
|
env_file: .env
|
2022-03-02 16:44:11 +00:00
|
|
|
volumes:
|
|
|
|
- ./scripts/database/initialize.sql:/docker-entrypoint-initdb.d/initialize.sql
|
2022-03-03 08:35:13 +00:00
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
pgdata:
|