forked from mishamx/yupe-meetup-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
68 lines (65 loc) · 1.12 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
version: '2'
networks:
back:
front:
services:
php:
depends_on:
- db
build: .
networks:
- back
volumes:
- appassets:/var/www/web/assets:rw
environment:
DB_CHARSET: utf8
DB_HOST: db
DB_NAME: web
DB_PASSWORD: web
DB_PORT: '3306'
DB_TABLE_PREFIX: ''
DB_TYPE: mysql
DB_USER: web
db:
image: mishamx/mysql:5.7
environment:
MYSQL_DATABASE: web
MYSQL_PASSWORD: web
MYSQL_ROOT_PASSWORD: root_password
MYSQL_USER: web
networks:
- back
nginx:
depends_on:
- php
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
environment:
APP_HOST: php
networks:
- back
- front
volumes:
- appassets:/var/www/web/assets
sut:
depends_on:
- nginx
- php
- db
build: .
environment:
DB_CHARSET: utf8
DB_HOST: db
DB_NAME: web
DB_PASSWORD: web
DB_PORT: '3306'
DB_TABLE_PREFIX: ''
DB_TYPE: mysql
DB_USER: web
command: ./runtest.sh
networks:
- back
- front
volumes:
appassets: