forked from ushahidi/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (62 loc) · 1.65 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "2"
services:
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ushahidi
MYSQL_USER: ushahidi
MYSQL_PASSWORD: ushahidi
redis:
image: redis:4-alpine
platform:
build: .
environment:
APP_KEY: SomeRandomKey!!!SomeRandomKey!!!
DOCKERIZE_WAIT_FOR_mysql: tcp://mysql:3306
DOCKERIZE_WAIT_FOR_redis: tcp://redis:6379
ENABLE_NGINX: "true"
ENABLE_PHPFPM: "true"
ENABLE_PLATFORM_TASKS: "false"
RUN_PLATFORM_MIGRATIONS: "true"
DB_CONNECTION: mysql
DB_DATABASE: ushahidi
DB_HOST: mysql
DB_PORT: 3306
DB_USERNAME: ushahidi
DB_PASSWORD: ushahidi
REDIS_HOST: redis
CACHE_DRIVER: redis
QUEUE_DRIVER: redis
command: start
ports:
- "80:8080"
volumes:
- storage-app-public:/var/www/storage/app/public
platform_tasks:
build: .
environment:
APP_KEY: SomeRandomKey!!!SomeRandomKey!!!
DOCKERIZE_WAIT_FOR_mysql: tcp://mysql:3306
DOCKERIZE_WAIT_FOR_redis: tcp://redis:6379
ENABLE_NGINX: "false"
ENABLE_PHPFPM: "false"
ENABLE_PLATFORM_TASKS: "true"
ENABLE_QUEUE_LISTEN: "true"
TASK_RUN_PERIOD_SECS: "30"
RUN_PLATFORM_MIGRATIONS: "false"
DB_CONNECTION: mysql
DB_DATABASE: ushahidi
DB_HOST: mysql
DB_PORT: 3306
DB_USERNAME: ushahidi
DB_PASSWORD: ushahidi
REDIS_HOST: redis
CACHE_DRIVER: redis
QUEUE_DRIVER: redis
command: start
volumes:
- storage-app-public:/var/www/storage/app/public
volumes:
# share storage/app/public between platform containers
storage-app-public: