You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dsMin/docker/docker-compose.yml

64 lines
2.0 KiB

version: "3.8"
services:
portainer:
image: portainer/portainer:1.24.2
restart: always
ports:
- ${PORTAINER_PORT}:9000
volumes:
- ${DOCKER_SOCK}:/var/run/docker.sock
- ${PORTAINER_DATA}:/data
redis:
image: redis:6.2.4-alpine3.13
restart: always
environment:
- TZ=${TZ}
ports:
- ${REDIS_PORT}:6379
volumes:
- ./conf/redis/redis.conf:/usr/local/etc/redis/redis.conf
- ${REDIS_DATA}:/data
mariadb:
image: mariadb:10.5.10
restart: always
environment:
- TZ=${TZ}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
command: --default-authentication-plugin=mysql_native_password
ports:
- ${MYSQL_PORT}:3306
volumes:
- ./conf/mariadb/my.cnf:/etc/mysql/conf.d/my.cnf:ro
- ./conf/mariadb/initdb.d:/docker-entrypoint-initdb.d
- ${MYSQL_DATA}:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 10s
retries: 10
openresty:
image: openresty/openresty:1.19.3.1-8-alpine
restart: always
ports:
- ${NGINX_HTTP_PORT}:80
- ${NGINX_SSL_PORT}:443
volumes:
- ./conf/openresty/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
- ./conf/openresty/rsa.lua:/usr/local/openresty/lualib/rsa.lua
- ${NGINX_LOG}:/usr/local/openresty/nginx/logs
kafka:
image: 76527413/kafka:2.8.0
restart: always
volumes:
- ./conf/kafka/server.properties:/opt/kafka/config/kraft/server.properties
- ${KAFKA_DATA}:/tmp/kraft-combined-logs
- ${KAFKA_LOG}:/opt/kafka/logs
ports:
- 9092:9092
- 9093:9093
healthcheck:
test: ["CMD", "nc", "-vz", "localhost", "9092"]
interval: 10s
timeout: 10s
retries: 10