-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yaml
62 lines (56 loc) · 1.12 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
version: '3'
services:
laravel:
depends_on:
- mariadb
- redis
links:
- mariadb
- redis
tty: true
build: .
volumes:
- ./app:/app/app
- ./config:/app/config
- ./database:/app/database
- ./public:/app/public
- ./resources:/app/resources
- ./routes:/app/routes
- ./storage:/app/storage
- ./tests:/app/tests
- ./build:/app/build
- ./.git:/app/.git
ports:
- "8000:8000"
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_DATABASE: badgeware
DB_USERNAME: badgeware
DB_PASSWORD: badgeware
networks:
- frontend
- backend
restart: unless-stopped
mariadb:
image: mariadb
volumes:
- ./database/mariadb:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: badgeware
MYSQL_USER: badgeware
MYSQL_PASSWORD: badgeware
networks:
- backend
restart: unless-stopped
redis:
image: redis
networks:
- backend
restart: unless-stopped
networks:
frontend:
driver: bridge
backend:
driver: bridge