-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1016 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
49
version: "3.8"
services:
app:
build: .
working_dir: /var/www/reactable
ports:
- "6001:6001"
environment:
APP_ENV: development
APP_URL: http://localhost:8008
DB_HOST: db
DB_PORT: "3306"
DB_DATABASE: "reactable"
DB_USERNAME: "reactable_user"
DB_PASSWORD: "password"
volumes:
- ./core:/var/www/reactable
- ./supervisor/conf.d:/etc/supervisor/conf.d
- php:/usr/local/etc/php
web:
image: nginx
ports:
- "8008:80"
volumes:
- ./core:/var/www/reactable
- ./nginx/conf.d:/etc/nginx/conf.d
cache:
image: redis
command: redis-server --appendonly yes
ports:
- "6479:6379"
volumes:
- cache:/data
db:
image: mariadb
ports:
- 3309:3306
environment:
MYSQL_DATABASE: "reactable"
MYSQL_USER: "reactable_user"
MYSQL_PASSWORD: "password"
MYSQL_RANDOM_ROOT_PASSWORD: 1
volumes:
- data:/var/lib/mysql
volumes:
data:
cache:
php: