-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 905 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
# https://docs.docker.com/compose/compose-file/
version: '2'
services:
redis:
container_name: redis
mem_limit: 512m
image: redis:alpine
ports:
- 6379:6379
networks:
- back-tier
mysql:
container_name: mysql
image: mysql:5.6
ports:
- 3306:3306
networks:
- back-tier
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
- MYSQL_DATABASE=CrudApi_database
- MYSQL_USER=api_user
- MYSQL_PASSWORD=api_pwd
volumes:
- /var/lib/mysql
crudapi:
depends_on:
- mysql
- redis
container_name: crudapi
build: .
volumes:
- /var/www/CrudApi/Application/core/Storage/Cache/
- /var/www/CrudApi/Application/core/Storage/uploads/
links:
- mysql
- redis
ports:
- 80:80
networks:
- front-tier
- back-tier
networks:
back-tier:
front-tier: