-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathdocker-compose.yml
66 lines (60 loc) · 1.62 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
version: '3'
services:
ontask_server:
image: ontask_server:development
restart: always
build:
context: ./
dockerfile: ./docker/server/Dockerfile.development
container_name: ontask_server
links:
- ontask_postgres
- ontask_redis
depends_on:
- ontask_postgres
- ontask_redis
# Needed to get the DATABASE URL (Used in docker-entrypoint)
env_file: ./settings/docker_dev.env
environment:
# OnTask configuration is on a separate env file (different REDIS, DATABASE)
- ENV_FILENAME=docker_dev.env
# Needed for Celery
- C_FORCE_ROOT=true
ports:
# Server will be available in port 8080 on host machine
- "8080:80"
expose:
- "80"
ontask_celery:
restart: always
image: ontask_celery:development
build:
context: ./
dockerfile: ./docker/worker/Dockerfile.development
container_name: ontask_celery
links:
- ontask_postgres
- ontask_redis
depends_on:
- ontask_server
- ontask_postgres
- ontask_redis
environment:
# OnTask configuration is on a separate env file (different REDIS, DATABASE)
- ENV_FILENAME=docker_dev.env
# Needed for Celery
- C_FORCE_ROOT=true
ontask_postgres:
restart: always
image: postgres:latest
container_name: ontask_postgres
volumes:
- ./docker/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- pgdata:/var/lib/postgresql/data
env_file: ./settings/docker_dev.env
ontask_redis:
restart: always
image: redis:latest
container_name: ontask_redis
volumes:
pgdata: