Nameless-Docker-Rootless/docker-compose.yaml
2022-07-06 19:54:11 +02:00

40 lines
829 B
YAML

version: '3.2'
services:
nginx:
image: namelessmc/nginx:dev
ports: ['8080:8080']
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:dev
volumes:
- type: bind # same as web container
source: ./web
target: /data
depends_on: [db]
# 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