38 lines
867 B
YAML
38 lines
867 B
YAML
# 2023-09-25
|
|
# Stack: stacks
|
|
---
|
|
|
|
sample:
|
|
name: "sample"
|
|
ipv6: true
|
|
directories:
|
|
- conf
|
|
- datas
|
|
services:
|
|
- name: "sample"
|
|
#extends: host
|
|
image: "scratch:latest"
|
|
uid: "0"
|
|
gid: "0"
|
|
privileged: true
|
|
capabilities:
|
|
- DAC_OVERRIDE
|
|
restart: "unless-stopped"
|
|
depends_on:
|
|
sample:
|
|
#condition: service_healthy
|
|
condition: service_started
|
|
ports:
|
|
- { exposed: "80", container: "80" }
|
|
#healthcheck: 'wget --no-verbose --tries=1 --spider http://0.0.0.0:80/ || exit 1'
|
|
#healthcheck: 'curl --fail http://0.0.0:80/ || exit 1'
|
|
environment:
|
|
STACK: "sample"
|
|
ressources:
|
|
cpu: '1.0'
|
|
memory: "128M"
|
|
pids: 128
|
|
volumes:
|
|
- ./conf/conf.d:/etc/nginx/conf.d:rw
|
|
- ./datas/html:/usr/share/nginx/html:rw
|