-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.15 KB
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
version: '3'
services:
# hyperf
hyperf:
image: hyperf/hyperf:${HYPERF_VERSION}
hostname: hyperf
container_name: hyperf
restart: always
privileged: true
ports:
- '${HYPERF_HOST_PORT}:9501'
- '9601:9601'
links:
- mysql
- redis
volumes:
- ${HYPERF_WORK_DIR}:/hyperf-skeleton
tty: true
networks:
- dev_networks
# mysql
mysql:
container_name: mysql
hostname: mysql
image: mysql:${MYSQL_VERSION}
privileged: true
expose:
- "3306"
ports:
- '${MYSQL_HOST_PORT}:3306'
volumes:
- ${MYSQL_CONF_FILE}:/etc/mysql/my.cnf
- ${MYSQL_DATA_DIR}:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}'
networks:
- dev_networks
# redis
redis:
container_name: redis
hostname: redis
image: redis:${REDIS_VERSION}
ports:
- '${REDIS_HOST_PORT}:6379'
volumes:
- ${REDIS_CONF_FILE}:/etc/redis/redis.conf
- ${REDIS_DATA_DIR}:/data
restart: always
entrypoint: ['redis-server', '/etc/redis/redis.conf']
networks:
- dev_networks
networks:
dev_networks: