-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
48 lines (43 loc) · 986 Bytes
/
docker-compose.yml
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
# illusion - docker-composer.yml of mariadb + redis + phpmyadmin, for sample only.
# (c) 2023 SuperSonic (https://github.com/supersonictw)
version: "3.5"
services:
database:
image: mariadb:10.10
container_name: illusion-data
ports:
- 127.0.0.1:2001:3306
volumes:
- database:/var/lib/mysql:rw
- ./backup.sh:/usr/local/bin/backup.sh:ro
- ./dump:/dump:rw
networks:
- illusion
environment:
MARIADB_ROOT_PASSWORD: illusion-admin
restart: always
cache:
image: redis:7.0
container_name: illusion-cache
ports:
- 127.0.0.1:2002:6379
networks:
- illusion
restart: always
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.2
container_name: illusion-pma
ports:
- 127.0.0.1:2003:80
networks:
- illusion
environment:
PMA_HOST: "illusion-data"
restart: always
volumes:
database:
driver: local
networks:
illusion:
name: illusion
driver: bridge