forked from mkitzmann/awwesome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 870 Bytes
/
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
version: '3'
services:
ofelia:
image: mcuadros/ofelia:latest
container_name: ofelia
depends_on:
- source
command: daemon --docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
ofelia.job-run.awwesome.schedule: '@daily'
ofelia.job-run.awwesome.container: 'awwesome'
source:
image: mkitzmann/awwesome:latest
container_name: awwesome
restart: no
environment:
- REQUEST_DELAY=0
- CHUNK_SIZE=20
- LOW_COMMIT_COUNT=2
env_file:
- .env
working_dir: /usr/src/app
command: sh -c "npm run build && rm -r html/* && cp -r dist/* html && exit"
volumes:
- shared_volume:/usr/src/app/html
web:
image: nginx
container_name: nginx
ports:
- '8080:80'
volumes:
- shared_volume:/usr/share/nginx/html:ro
volumes:
shared_volume: