forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (56 loc) · 1.61 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
version: "3"
services:
web:
image: oldev:latest
environment:
- PYENV_VERSION=${PYENV_VERSION:-}
# Branch to pull infogami from. Leave blank to use production infogami for py2, master for py3
# Set to "local" to not pull anything and use whatever you've got locally in vendor/infogami
# ^ NOTE: Also need to uncomment the infogami volume mount (below) if doing this!
- INFOGAMI=${INFOGAMI:-}
build:
context: .
dockerfile: docker/Dockerfile.oldev
ports:
- 8080:80
- 7000:7000
- 8081:8081
- 3000:3000
volumes:
# Persistent volume mount for installed git submodules
- ol-vendor:/openlibrary/vendor
# Persistent volume mount for generated css and js
- ol-build:/openlibrary/static/build
# Persistent volume mount for node_modules
- ol-nodemodules:/openlibrary/node_modules
# The above volume mounts are required so that the local dev bind mount below
# does not clobber the data generated inside the image / container
- .:/openlibrary
# If you're making changes to infogami, enable this, and set INFOGAMI=local when
# starting docker-compose
# - ./vendor/infogami:/openlibrary/vendor/infogami
networks:
- webnet
solr:
image: olsolr:latest
build:
context: .
dockerfile: docker/Dockerfile.olsolr
ports:
- 8983:8080
volumes:
- solr-data:/var/lib/solr/data
networks:
- webnet
memcached:
image: memcached
networks:
- webnet
#covers:
networks:
webnet:
volumes:
solr-data:
ol-vendor:
ol-build:
ol-nodemodules: