- docker-compose.yml
# docker-compose.yml
version: '3.7'
services:
postgresql:
container_name: postgresql
image: postgres:13.4
init: true
restart: always
volumes:
- ./volume/data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: { username }
POSTGRES_PASSWORD: { password }
'개발공부 > Docker' 카테고리의 다른 글
Docker Compose로 RabbitMQ 실행하기 (0) | 2024.06.20 |
---|---|
Docker Compose로 Redis 실행하기 (0) | 2023.01.31 |
Docker Compose로 MariaDB 실행하기 (0) | 2020.08.29 |
CentOS 7에 Docker Compose 설치하기 (0) | 2020.08.29 |
CentOS 7에 Docker 설치하기 (0) | 2020.08.29 |