-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
60 lines (47 loc) · 1.19 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
version: '2'
services:
packagist:
restart: always
image: dockette/packagist:packagist
ports:
# Production mode
- 8000:8000
- 80:8000
#- 443:8000
# Development mode
- 9000:9000
# Supervisor
#- 9001:9001
# You should create your own SSH keys
# ===================================
#volumes:
# - ./config/ssh/config:/var/www/.ssh/config
# - ./config/ssh/id_rsa:/var/www/.ssh/id_rsa
# - ./config/ssh/id_rsa.pub:/var/www/.ssh/id_rsa.pub
# - ./config/ssh/known_hosts:/var/www/.ssh/known_hosts
environment:
- PACKAGIST_DATABASE_USER=packagist
- PACKAGIST_DATABASE_PASSWORD=packagist
depends_on:
- mysql
- redis
- solr
mysql:
restart: always
image: mariadb:10.1
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=packagist
- MYSQL_USER=packagist
- MYSQL_PASSWORD=packagist
redis:
restart: always
image: redis:3.2
volumes:
- ./data/redis:/data
solr:
image: dockette/packagist:solr
volumes:
- ./data/solr:/opt/solr/server/solr/mycores