-
Notifications
You must be signed in to change notification settings - Fork 59
/
docker-compose.yml
83 lines (71 loc) · 1.98 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015 Parisson SARL
# This file is part of TimeSide.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# TimeSide is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with TimeSide. If not, see <http://www.gnu.org/licenses/>.
# Authors:
# Guillaume Pellerin <yomguy@parisson.com>
# Thomas Fillon <thomas@parisson.com>
version: '3'
services:
db:
image: postgres:9
volumes:
- ./var/lib/postgresql/data:/var/lib/postgresql/data
- ./var/backup:/srv/backup
- ./bin:/srv/bin
env_file:
- env/debug.env
broker:
image: redis:5
app:
build: .
command: /bin/bash /srv/app/app.sh --runserver
volumes:
- ./app:/srv/app
- ./bin:/srv/bin
- ./docs:/srv/docs
- ./timeside:/srv/lib/timeside/timeside
- ./tests:/srv/lib/timeside/tests
- ./lib/plugins:/srv/lib/plugins
- ./var/media:/srv/media
- ./var/backup:/srv/backup
- ./var/static:/srv/static
- ./var/log/uwsgi:/var/log/uwsgi
- ./var/log/app:/var/log/app
- ./var/cache:/srv/cache
- ./pyproject.toml:/srv/pyproject.toml
- ./poetry.lock:/srv/poetry.lock
env_file:
- env/debug.env
links:
- broker
- db
expose:
- "8000"
worker:
build: .
command: /bin/bash /srv/app/worker.sh
volumes:
- /etc/._ifpk_2
- ./var/log/celery:/var/log/celery
volumes_from:
- app
env_file:
- env/debug.env
links:
- broker
- db
volumes:
app:
db:
worker: