forked from ppy/osu-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (64 loc) · 1.63 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
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
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:latest
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
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"
volumes:
database: