mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-29 11:20:34 +01:00
Working on Docker Compose | Using volumes
This commit is contained in:
@@ -31,6 +31,7 @@ services:
|
|||||||
- proxy
|
- proxy
|
||||||
depends_on:
|
depends_on:
|
||||||
- mariadb
|
- mariadb
|
||||||
|
- redis
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:10.5.8-focal
|
image: mariadb:10.5.8-focal
|
||||||
environment:
|
environment:
|
||||||
@@ -39,3 +40,15 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=false
|
- traefik.enable=false
|
||||||
|
volumes:
|
||||||
|
- "/root/mariadb/data:/var/lib/mysql"
|
||||||
|
redis:
|
||||||
|
image: redis:6.0.10
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD:
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
labels:
|
||||||
|
- traefik.enable=false
|
||||||
|
volumes:
|
||||||
|
- "/root/redis/redis.conf:/usr/local/etc/redis/redis.conf"
|
||||||
|
|||||||
Reference in New Issue
Block a user