常用docker镜像
bitnami/postgresql:13.2.0
version: '3'
services:
postgresql:
image: bitnami/postgresql:13.2.0
container_name: postgresql13.2
stdin_open: true
tty: true
shm_size: 1g
network_mode: bridge
ports:
- '5432:5432'
volumes:
- 'postgresql_data:/bitnami/postgresql'
environment:
- 'POSTGRESQL_PASSWORD=password'
volumes:
postgresql_data:
driver: local
bitnami/postgresql:13.2.0
version: '3'
services:
postgresql:
image: postgres:13.2-alpine
container_name: postgresql13.2alpine
stdin_open: true
tty: true
shm_size: 1g
network_mode: bridge
ports:
- '5432:5432'
volumes:
- data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
volumes:
data:
driver: local
portainer-ce
#docker volume create portainer_data
#docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:2.5.1-alpine
mkdir -p /home/docker-compose/portainer/data
chmod 777 -R /home/docker-compose/portainer
docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /home/docker-compose/portainer/data:/data portainer/portainer-ce:2.6.2-alpine
webdevops/php-nginx