-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
47 lines (43 loc) · 999 Bytes
/
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
version: '3.7'
services:
mysql:
image: mysql:8.0
restart: on-failure
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--socket=/tmp/mysql.sock']
env_file:
- .env
environment:
- MYSQL_ROOT_HOST=%
ports:
- "4306:3306"
volumes:
- ./.data/mysql:/var/lib/mysql
container_name: clrt_mysql_host
redis:
image: redis:7
command: redis-server --stop-writes-on-bgsave-error no --save ""
# This is to simulate an Openshift container with no write permission except to /tmp
read_only: true
tmpfs:
- /tmp
volumes:
- clrt-redis-data:/data:ro
container_name: clrt_redis_host
web:
build:
context: .
args:
TZ: ${TZ}
command: bash -c "./start.sh"
volumes:
- .:/code
ports:
- "6000:6000"
- "6020:6020"
depends_on:
- mysql
env_file:
- .env
container_name: clrt_web
volumes:
clrt-redis-data: