-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (52 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
version: "2"
services:
www:
build: .
ports:
- "71:80"
volumes:
- ./apache/000-default.conf:/etc/apache2/sites-available/000-default.conf
#- ./application:/var/www/html/
links:
- db:db
networks:
- default
db:
image: mysql:5.7.13
restart: always
volumes:
- ./db_data:/var/lib/mysql:rw
- ./mysql-dump:/docker-entrypoint-initdb.d
ports:
- "3307:3306"
networks:
- default
environment:
MYSQL_DATABASE: app
MYSQL_USER: user
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: test
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db:db
ports:
- 8000:80
environment:
MYSQL_USER: user
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: test
redis:
image: 'redis:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '6389:6379'
volumes:
- ./redis_data:/bitnami/redis/data
volumes:
db_data:
redis_data:
networks:
default:
driver: bridge