forked from owlchester/kanka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (44 loc) · 942 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
version: '3'
services:
web:
build:
context: .
image: kanka
container_name: kanka
ports:
- ${DOCKER_WEB_PORT}:80
env_file:
- .docker/web/variables.env
environment:
APP_DEBUG: ${APP_DEBUG}
APP_LOG_LEVEL: ${APP_LOG_LEVEL}
DB_HOST: database
DB_CONNECTION: mysql
DB_DATABASE: kanka_test
DB_USERNAME: homestead
DB_PASSWORD: secret
REDIS_HOST: redis
depends_on:
- database
- redis
database:
image: mariadb:10
restart: unless-stopped
environment:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
ports:
- ${DOCKER_DB_PORT}:3306
volumes:
- mariadb_data:/var/lib/mysql
redis:
image: redis
restart: always
ports:
- "6379:6379"
# volumes:
# - /data/redis:/data
volumes:
mariadb_data: