Initial Commit
This commit is contained in:
28
tasks/pykms.yml
Normal file
28
tasks/pykms.yml
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
- name: Create directories
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "/mnt/nfs/docker/pykms"
|
||||
- "/mnt/nfs/docker/pykms/config"
|
||||
|
||||
- name: Create the pykms container
|
||||
docker_container:
|
||||
name: pykms
|
||||
image: ghcr.io/py-kms-organization/py-kms:latest
|
||||
restart_policy: unless-stopped
|
||||
recreate: true
|
||||
networks:
|
||||
- name: proxy_network
|
||||
ports:
|
||||
- "1688:1688"
|
||||
env:
|
||||
IP: "0.0.0.0"
|
||||
SQLITE: "true"
|
||||
HWID: "RANDOM"
|
||||
LOGLEVEL: "INFO"
|
||||
volumes:
|
||||
- /mnt/nfs/docker/pykms/db:/home/py-kms/db
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
Reference in New Issue
Block a user