forked from ppy/osu-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
81 lines (79 loc) · 2.04 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
74
75
76
77
78
79
80
81
version: '3'
services:
php:
build:
context: ./docker/php
args:
_uid: ${_UID:-1000}
_gid: ${_GID:-1000}
container_name: osuweb-php
working_dir: /data/osuweb
volumes:
- .:/data/osuweb
- ./docker/php/overrides.conf:/etc/php/7.1/fpm/pool.d/zz-overrides.conf
environment:
DB_HOST: osuweb-mysql
CACHE_DRIVER: redis
REDIS_HOST: osuweb-redis
ES_HOST: osuweb-es:9200
nginx:
image: nginx:latest
container_name: osuweb-nginx
volumes:
- ./docker/nginx/nginx-osu-next:/etc/nginx/conf.d/default.conf
- .:/data/osuweb
ports:
- "8080:80"
db:
image: mysql:5.7
container_name: osuweb-mysql
volumes:
- database:/var/lib/mysql
- ./bin/db_setup.sh:/docker-entrypoint-initdb.d/db_setup.sh
- ./docker/mysql/db_user.sql:/docker-entrypoint-initdb.d/db_user.sql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ONETIME_PASSWORD: "yes"
composer:
build:
context: ./docker/php
args:
_uid: ${_UID:-1000}
_gid: ${_GID:-1000}
depends_on:
- db
container_name: osuweb-composer
volumes:
- .:/data/osuweb
- ./docker/php/overrides.conf:/etc/php/7.1/fpm/pool.d/zz-overrides.conf
environment:
DB_HOST: osuweb-mysql
APP_DEBUG:
user: osuweb
working_dir: /data/osuweb
command: bash -c "mkdir -p node_modules && cp -n .env.example .env && ./build.sh"
yarn:
build:
context: ./docker/yarn
args:
_uid: ${_UID:-1000}
_gid: ${_GID:-1000}
container_name: osuweb-yarn
volumes:
- .:/data/osuweb
user: osuweb
working_dir: /data/osuweb
command: bash -c "yarn && yarn run watch"
redis:
image: redis:latest
container_name: osuweb-redis
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.1
container_name: osuweb-es
volumes:
- elasticsearch:/usr/share/elasticsearch/data
environment:
discovery.type: single-node
volumes:
database:
elasticsearch: