-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (56 loc) · 1 KB
/
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
51
52
53
54
55
56
57
version: '3'
services:
db:
image: mysql:5.7
container_name: db
environment:
MYSQL_ROOT_PASSWORD: mypwd
MYSQL_DATABASE: test_db
ports:
- "3306:3306"
volumes:
- dbvolume_sample:/var/lib/mysql
memcached:
container_name: memcached
image: memcached:latest
ports:
- "11211:11211"
api:
build: ./docker-api
container_name: api
depends_on:
- db
volumes:
- ./api/:/var/www/html/
env_file:
- api-variables.env
ports:
- "81:80"
stdin_open: true
tty: true
web:
build: ./docker-web
container_name: web
depends_on:
- memcached
- redis
- api
volumes:
- ./frontend/:/var/www/html/
env_file:
- web-variables.env
ports:
- "80:80"
stdin_open: true
tty: true
redis:
container_name: redis
volumes:
- /tmp/redis:/data/
build: ./docker-redis
ports:
- "6379:6379"
stdin_open: true
tty: true
volumes:
dbvolume_sample: