cmkl/fall-2025/sen-209/project/week2/docker-compose.yml

21 lines
517 B
YAML

services:
smartcitydb:
image: postgres
container_name: smartcitydb
hostname: smartcitydb
restart: always
# set shared memory limit when using docker compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
volumes:
- ./data:/var/lib/postgresql:z,rw
environment:
POSTGRES_PASSWORD: test2509
network_mode: host