-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
49 lines (45 loc) · 872 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'
services:
app:
build:
context: ./amazonlinux2
dockerfile: ./Dockerfile
volumes:
- ".:/prj/skyhopper"
- "./amazonlinux2/.ssh:/root/.ssh"
# exclude
- /prj/skyhopper/.git
environment:
- REDIS_HOST=redis
- REDIS_URL=redis://redis:6379/1
ports:
- 3000:3000
- 3210:3210
depends_on:
- mysql
- redis
mysql:
image: mysql:5.7
volumes:
- "./mysql:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=password
ports:
- 3306:3306
redis:
image: redis:4
ports:
- 6379:6379
volumes:
- "./redis/data:/data"
nginx:
image: nginx:1.15
ports:
- 80:80
volumes:
- "./nginx/conf.d:/etc/nginx/conf.d"
- ".:/prj/skyhopper"
# exclude
- /prj/skyhopper/.git
depends_on:
- app