forked from NamelessMC/Nameless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
executable file
·84 lines (77 loc) · 2.29 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# THIS FILE IS FOR DEVELOPMENT. For production, see https://github.com/NamelessMC/Nameless-Docker
# INSTRUCTIONS
#
# Set up:
# sudo mkdir /opt/namelessmc
#
# Run:
# docker compose up
#
# Update:
# docker compose pull
#
# Reinstall:
# docker compose exec php php -f scripts/cli_install.php '--' '--iSwearIKnowWhatImDoing' '--reinstall'
#
# Uninstall
# docker compose down
# rm -rf core/config.php cache/*
# sudo rm -r /opt/namelessmc
# docker image prune -af
version: '3.2'
services:
web:
image: namelessmc/nginx:dev
ports: ['8080:8080']
volumes:
- type: bind
source: .
target: /data
user: '1000' # set this to your user id!
depends_on: [php]
environment:
PHP_FPM: php:9000
php:
image: namelessmc/php:dev
volumes:
- type: bind
source: .
target: /data
user: '1000' # set this to your user id!
environment:
NAMELESS_HOSTNAME: localhost
NAMELESS_DATABASE_ADDRESS: db
NAMELESS_DATABASE_NAME: nameless
NAMELESS_DATABASE_USERNAME: nameless
NAMELESS_DATABASE_PASSWORD: nameless
NAMELESS_FRIENDLY_URLS: 'true'
NAMELESS_SITE_NAME: 'Development'
NAMELESS_SITE_CONTACT_EMAIL: [email protected]
NAMELESS_SITE_OUTGOING_EMAIL: [email protected]
NAMELESS_ADMIN_USERNAME: admin
NAMELESS_ADMIN_EMAIL: [email protected]
NAMELESS_ADMIN_PASSWORD: password
NAMELESS_DEBUGGING: 'enabled'
NAMELESS_AUTO_INSTALL: 'yes please'
NAMELESS_ALWAYS_INSTALL_DEPENDENCIES: 'yes please'
NAMELESS_EMAIL_VERIFICATION: '0'
db:
image: mariadb
volumes:
- type: bind
source: /opt/namelessmc
target: /var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: nameless
MYSQL_USER: nameless
MYSQL_PASSWORD: nameless
MYSQL_DATABASE: nameless
phpmyadmin:
image: phpmyadmin
ports: ['8181:80']
depends_on: [db]
environment:
PMA_HOST: db
PMA_ABSOLUTE_URI: http://localhost:8080
PMA_USER: nameless
PMA_PASSWORD: nameless