-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.07 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
version: '3.3'
services:
app:
build: .
container_name: oscar-app
restart: always
working_dir: /var/www/
volumes:
- ./src/:/var/www/src
- ./tests/:/var/www/tests
- ./public/:/var/www/public
- ./phpunit.xml:/var/www/phpunit.xml
- ./coverage/:/var/www/coverage:delegated
networks:
- oscar-network
nginx:
image: nginx:1.19-alpine
container_name: oscar-nginx
restart: always
ports:
- 8000:80
volumes:
- ./src/:/var/www/src
- ./public/:/var/www/public
- ./docker/nginx:/etc/nginx/conf.d
networks:
- oscar-network
db:
container_name: oscar-db
image: mysql:8.0
volumes:
- ./storage/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- 3307:3306
networks:
- oscar-network
coverage:
image: nginx:1.19-alpine
container_name: oscar-coverage
restart: always
ports:
- 3000:80
volumes:
- ./coverage/:/usr/share/nginx/html
networks:
oscar-network:
driver: bridge