setup nextcloud service
This commit is contained in:
33
dockerfiles/services/mariadb/docker-compose.yml
Normal file
33
dockerfiles/services/mariadb/docker-compose.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
# docker-compose file for mysql
|
||||
# DOCKER_HOST=dkhost:2376 docker-compose up -d
|
||||
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml services
|
||||
|
||||
version: '3'
|
||||
services:
|
||||
|
||||
mysql:
|
||||
image: "mariadb:10"
|
||||
volumes:
|
||||
- /opt/shared/mariadb/data:/var/lib/mysql
|
||||
ports:
|
||||
- "3306:3306"
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: "aifuoqibcqobcqb3"
|
||||
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: "1s"
|
||||
max_attempts: 3
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: prod-private
|
||||
Reference in New Issue
Block a user