-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (70 loc) · 1.67 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"
services:
proxy:
image: nginx:${NGINX_VERSION:-alpine}
container_name: proxy
ports:
- 80:80
- 443:443
networks:
- opentribes
working_dir: /var/www/html
environment:
- DOCUMENT_ROOT=${DOCUMENT_ROOT:-/var/www/html/FrameworkNew/public}
- DOMAIN=${DOMAIN:-opentribes.local}
volumes:
- ./../Core:/var/www/html
- ./proxy/default.conf:/etc/nginx/templates/default.conf.template:ro
- logs:/var/log
php:
container_name: php
user: "1000:1000"
build:
context: php
args:
PHP_VERSION: ${PHP_VERSION:-8.2}
ENV: ${ENV:-dev}
networks:
- opentribes
working_dir: /var/www/html
volumes:
- ./../Core:/var/www/html
- ./php/php-ini-overrides.ini:/usr/local/etc/php/conf.d/docker-custom.ini
- ./php/coverage:/opt/phpstorm-coverage
- logs:/var/log
node:
container_name: node
build:
context: node
args:
NODE_VERSION: ${NODE_VERSION:-19-alpine}
user: "1000:1000"
working_dir: /home/node/app/GameClient
restart: always
ports:
- 1234:1234
networks:
- opentribes
volumes:
- ./../Core:/home/node/app
database:
image: mariadb:${MARIADB_VERSION:-latest}
container_name: mariadb
networks:
- opentribes
ports:
- ${DB_PUBLIC_PORT:-3306}:3306
environment:
- MYSQL_USER=${MYSQL_USER:-dev}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-dev}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
volumes:
- db:/var/lib/mysql
volumes:
logs:
name: opentribes_logs
db:
name: opentribes_db
networks:
opentribes:
name: opentribes_network