-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
73 lines (65 loc) · 1.42 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.5'
networks:
code_quiz:
name: code_quiz
volumes:
db-data:
services:
proxy:
build:
dockerfile: Dockerfile
context: ./proxy/
networks:
- code_quiz
ports:
- "80:80"
restart: always
volumes:
- ./proxy/config/sites-enabled:/etc/nginx/sites-enabled
- ./proxy/config/sites-enabled:/etc/nginx/sites-available
- ./proxy/config/includes:/etc/nginx/includes
- ./proxy/config/nginx.conf:/etc/nginx.conf
website:
build:
dockerfile: Dockerfile
context: ./website/
networks:
- code_quiz
api:
build:
dockerfile: Dockerfile
context: ./api/
args:
BUILD_ENV: dev
depends_on:
- db
environment:
- XDEBUG_MODE=off
networks:
- code_quiz
volumes:
- ./api/:/var/www/html
- ./api/infra/api/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./api/infra/api/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
api-nginx:
build:
dockerfile: infra/nginx/Dockerfile
context: ./api/
args:
BUILD_ENV: dev
depends_on:
- api
networks:
- code_quiz
volumes:
- ./api/:/var/www/html
db:
image: mariadb:10.9.2
restart: always
environment:
MARIADB_ROOT_PASSWORD: test
MARIADB_DATABASE: code_quiz
networks:
- code_quiz
volumes:
- db-data:/var/lib/mysql