mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Create ubuntu.yaml
This commit is contained in:
parent
16fe693a53
commit
bc146926c0
40
docker/v1/compose/ubuntu.yaml
Normal file
40
docker/v1/compose/ubuntu.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
services:
|
||||
os:
|
||||
image: ${OS}
|
||||
container_name: ${USERNAME}
|
||||
hostname: ${HOSTNAME}
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${SSH_PORT}"
|
||||
- "${TTYD_PORT}"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "${CPU}"
|
||||
memory: "${RAM}"
|
||||
volumes:
|
||||
- /etc/openpanel/skeleton/motd:/etc/motd:ro # SSH welcome message
|
||||
- /home/${CONTEXT}/mail/:/var/mail/ # Mail storage
|
||||
- webserver_data:/etc/${path}/ # Nginx/Apache data
|
||||
- pg_data:/var/lib/postgresql/data # Postgres data
|
||||
- mysql_data:/var/lib/mysql # MySQL data
|
||||
- html_data:/var/www/html/ # Website files
|
||||
- /home/${CONTEXT}/sockets/:/var/run/ # Sockets
|
||||
networks:
|
||||
- default
|
||||
command: [ "tail", "-f", "/dev/null" ]
|
||||
|
||||
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
driver: local
|
||||
html_data:
|
||||
driver: local
|
||||
webserver_data:
|
||||
driver: local
|
||||
pg_data:
|
||||
driver: local
|
Loading…
Reference in New Issue
Block a user