forked from creativecommons/search
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (30 loc) · 824 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (30 loc) · 824 Bytes
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
# Also see:
# Dockerfile
#
# https://docs.docker.com/compose/compose-file/compose-file-v2/
version: "2.4"
services:
web:
build: dev/web
command: /bin/bash -c "
echo 'Starting static webserver at http://127.0.0.1:8080/'
&& /usr/local/bin/httpd-foreground
"
container_name: cc-search-web
ports:
- "8080:80"
restart: on-failure
volumes:
# Mount site configuration directory
- ./config:/usr/local/apache2/conf/config:ro
# Mount website directory
- ./src:/usr/local/apache2/htdocs:ro
# Example commands using this service:
# docker compose run node prettier --write docs/index.html
node:
build: dev/node
container_name: cc-search-node
volumes:
# Mount repository to working directory
- ./:/opt
working_dir: /opt