-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-build.yml
51 lines (48 loc) · 1.39 KB
/
docker-build.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
#
# Docker-compose file used when building and running locally (WSL)
#
# Need version >= 3.2 because of how we define our volumes
version: "3.2"
services:
trendlines:
build:
context: .
dockerfile: docker/Dockerfile
restart: always
ports:
- 5000:80
volumes:
# - type: bind
# Host location. This can be anywhere on your file system.
# source: c:/gitlab/github/trendlines/config
# Within the container. The /data directory holds both the internal
# database file (if you're using SQLite) and the configuration file
# `trendlines.cfg`.
# target: /data
- type: bind
source: c:/gitlab/github/trendlines/internal.db
target: /data/internal.db
depends_on:
- "celery"
- "redis"
redis:
image: redis:5.0.5-alpine
ports:
- "6379:6379"
celery:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "2003:2003"
volumes:
- type: bind
# Host location. This can be anywhere on your file system.
source: c:/gitlab/github/trendlines/config
# Within the container. The /data directory holds both the internal
# database file (if you're using SQLite) and the configuration file
# `trendlines.cfg`.
target: /data
command: celery worker -l info -A trendlines.celery_app.celery
depends_on:
- "redis"