-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (46 loc) · 940 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
50
version: '3'
services:
vapor:
build: .
restart: always
ports:
- "127.0.0.1:8888:8888"
environment:
- SERVER_LISTEN=0.0.0.0
- SERVER_PORT=8888
- MYSQL_HOSTNAME=db
- MYSQL_USER=mentor
- MYSQL_PASSWORD=changeme
- MYSQL_DATABASE=mentor
- REDIS_HOSTNAME=cache
volumes:
- ./Public:/vapor/Public:ro
- ./Resources:/vapor/Resources:ro
depends_on:
- db
networks:
default:
internal:
db:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_USER=mentor
- MYSQL_PASSWORD=changeme
- MYSQL_DATABASE=mentor
volumes:
- .data/mysql:/var/lib/mysql
networks:
internal:
cache:
image: redis:4
restart: always
volumes:
- .data/redis:/data
networks:
internal:
networks:
default:
internal:
internal: true