-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
76 lines (69 loc) · 1.39 KB
/
docker-compose.test.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '2'
services:
memcached:
image: memcached:alpine
web:
build:
context: .
dockerfile: Dockerfile.test
ports:
- "9091:80"
volumes:
- ./code:/code
- ./run_tests.sh:/code/run_tests.sh
- ./site.conf:/etc/nginx/conf.d/default.conf
networks:
- code-network
links:
- php
php:
build: .
volumes:
- ./code:/code
- ./log.conf:/usr/local/etc/php-fpm.d/zz-log.conf
links:
- mysql
networks:
- code-network
### uncomment if needed ###
#redis:
# image: redis:alpine
### uncomment if needed ###
#mariadb:
# image: mariadb:10.1
# working_dir: /code
# volumes:
# - ./code:/code
# environment:
# - MYSQL_ROOT_PASSWORD=docker
# - MYSQL_DATABASE=db_test
# - MYSQL_USER=test
# - MYSQL_PASSWORD=test
# ports:
# - "8083:3306"
mysql:
image: mysql:latest
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=ventum
- MYSQL_USER=root
- MYSQL_PASSWORD=password
networks:
- code-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql:db
ports:
- "8082:80"
environment:
- PMA_USER=root
- PMA_PASSWORD=password
- PHP_UPLOAD_MAX_FILESIZE=100MB
networks:
- code-network
networks:
code-network:
driver: bridge