-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 996 Bytes
/
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
services:
nginx:
container_name: quiz-game_nginx
image: quiz-game/web
build:
context: .
dockerfile: docker/nginx/Dockerfile
volumes:
- ./static:/var/www/static
ports:
- "80:80"
- "443:443"
links:
- php
depends_on:
- php
environment:
PORT: 80
HOST: localhost
FPM: php:9000
php:
container_name: quiz-game_fpm
image: quiz-game/php
build:
context: .
dockerfile: docker/php/Dockerfile
volumes:
- ./:/var/www
- ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
expose:
- 9000
depends_on:
- mysql
links:
- mysql
env_file: .env
mysql:
container_name: quiz-game_database
image: mariadb
hostname: database
ports:
- "3306:3306"
restart: always
env_file: .env
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
depends_on:
- mysql