Nameless-Docker-Rootless/docker-compose.yml
Robin 52ff7f8f33 redo containers so they are fully rootless
no more annoying useradd/userdel!
allows read only containers!
smaller images!
doesn't crash on restart without recreating anymore! (oops)
configurable children / spare servers!
2022-01-07 22:32:49 +01:00

39 lines
812 B
YAML

version: '3.2'
services:
nginx:
image: namelessmc/nginx:v2-pr12
ports: ['80:80']
volumes:
- type: bind # same as php container
source: ./web
target: /data
# environment: # Change this if you rename the php container
# PHP_FPM: php:9000
# user: 'youruser'
depends_on: [php]
# restart: always
php:
image: namelessmc/php:v2-pr12
volumes:
- type: bind # same as web container
source: ./web
target: /data
# user: 'youruser'
# restart: always
db:
image: mariadb
volumes:
- type: bind
source: ./db
target: /var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: nameless
MYSQL_USER: nameless
MYSQL_PASSWORD: nameless
MYSQL_DATABASE: nameless
# restart: always