mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-01-11 16:59:45 +01:00
fix: use version 3.8 of the Docker Compose specification
See also the Compose and Docker compatibility matrix [1]. While at it, reorder top-level configuration elements and separate each by a blank line to enhance readability. [1] https://docs.docker.com/compose/compose-file/compose-file-v3/#compose-and-docker-compatibility-matrix
This commit is contained in:
parent
989a080d16
commit
591ec21010
@ -1,10 +1,6 @@
|
|||||||
---
|
---
|
||||||
# (Optional) when using custom network
|
version: "3.8"
|
||||||
# networks:
|
|
||||||
# yournetwork:
|
|
||||||
# external: true
|
|
||||||
volumes:
|
|
||||||
postgres-data:
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
# (Recommended) replace "latest" with specific version
|
# (Recommended) replace "latest" with specific version
|
||||||
@ -20,5 +16,13 @@ services:
|
|||||||
# networks:
|
# networks:
|
||||||
# - yournetwork
|
# - yournetwork
|
||||||
volumes:
|
volumes:
|
||||||
- postgres-data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# (Optional) when using custom network
|
||||||
|
# networks:
|
||||||
|
# yournetwork:
|
||||||
|
# external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
||||||
|
Loading…
Reference in New Issue
Block a user