-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (71 loc) · 1.38 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
services:
db:
restart: unless-stopped
image: "mariadb:10.6.9"
ports:
- "3308:3306"
environment:
MYSQL_ROOT_PASSWORD: "laser-arena-control"
MARIADB_ROOT_PASSWORD: "laser-arena-control"
MYSQL_DATABASE: "lac"
MARIADB_DATABASE: "lac"
volumes:
- mariadb-liga-dev:/var/lib/mysql
networks:
- backend
redis:
restart: unless-stopped
image: eqalpha/keydb:latest
ports:
- "6378:6379"
networks:
- backend
- frontend
volumes:
- ./docker/redis/data:/data
php:
restart: unless-stopped
build:
context: ./
dockerfile: ./docker/Dockerfile
working_dir: /var/www/
links:
- db
- redis
depends_on:
- db
- redis
volumes:
- ./:/var/www
- ./docker/fpm/:/etc/php/
- ./docker/core/php.ini:/usr/local/etc/php/php.ini
networks:
- backend
environment:
APP_NAME: "Laser liga"
DB_HOST: "db"
DB_PORT: 3306
DB_DATABASE: "lac"
DB_USER: "root"
DB_PASSWORD: "laser-arena-control"
web:
restart: unless-stopped
image: nginx:alpine
depends_on:
- php
- db
ports:
- "8002:80"
networks:
- backend
- frontend
links:
- php
volumes:
- ./:/var/www
- ./docker/nginx:/etc/nginx
volumes:
mariadb-liga-dev:
networks:
backend:
frontend: