mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-07 08:54:04 +01:00
updated postgres and mariadb compose
This commit is contained in:
parent
d6729c02ae
commit
3b31d590b8
@ -7,7 +7,7 @@ volumes:
|
||||
mariadb-data:
|
||||
services:
|
||||
mariadb:
|
||||
container_name: mariadb:11.1.2
|
||||
# (Recommended) replace "latest" with specific version
|
||||
image: mariadb:latest
|
||||
# (Optional) remove this section when you don't want to expose
|
||||
ports:
|
||||
|
24
docker-compose/postgres/docker-compose.yaml
Normal file
24
docker-compose/postgres/docker-compose.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
# (Optional) when using custom network
|
||||
# networks:
|
||||
# yournetwork:
|
||||
# external: true
|
||||
volumes:
|
||||
postgres-data:
|
||||
services:
|
||||
postgres:
|
||||
# (Recommended) replace "latest" with specific version
|
||||
image: postgres:latest
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
# (Optional) when creating a new database
|
||||
# - POSTGRES_DB=${POSTGRES_DB}
|
||||
ports:
|
||||
- 5432:5432
|
||||
# (Optional) when using custom network
|
||||
# networks:
|
||||
# - yournetwork
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user