-
Notifications
You must be signed in to change notification settings - Fork 506
/
docker-compose.yml
80 lines (78 loc) · 2.08 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "2"
services:
mysql:
image: mariadb:10.11
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: ushahidi
MARIADB_USER: ushahidi
MARIADB_PASSWORD: ushahidi
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
# mysql 8.0
# - --default-authentication-plugin=mysql_native_password
ports:
- "33061:3306"
redis:
image: redis:7.2-alpine
platform:
build: .
environment:
APP_KEY: SomeRandomKey!!!SomeRandomKey!!!
DOCKERIZE_TIMEOUT: 180s
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
XDEBUG_MODE: ${XDEBUG_MODE:-off}
command: start
ports:
- "8080:8080"
volumes:
- storage-app-public:/var/www/storage/app/public
- .:/var/www
extra_hosts:
- "host.docker.internal:host-gateway"
platform_tasks:
build: .
environment:
APP_KEY: SomeRandomKey!!!SomeRandomKey!!!
DOCKERIZE_TIMEOUT: 180s
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:
networks:
internal:
driver: bridge