-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (71 loc) · 1.65 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
version: '3.8'
services:
alpino:
image: registry.webhosting.rug.nl/compling/alpino:latest
command: Alpino -notk -veryfast user_max=600000 server_kind=parse server_port=7001 assume_input_is_tokenized=off end_hook=xml -init_dict_p batch_command=alpino_server
ports:
- 7001:7001
db:
image: postgres
environment:
- POSTGRES_DB=sasta
- POSTGRES_USER=sasta
- POSTGRES_PASSWORD=sasta
volumes:
- postgres_data:/var/lib/postgresql/data/
backend:
build:
context: ./backend
image: &backend backend
volumes:
- type: bind
source: ./backend
target: /app
- static_data:/app/static
depends_on:
- db
env_file: &envfile
- ./.env.dev
command: python manage.py runserver 0.0.0.0:8000
frontend:
build:
context: ./frontend
volumes:
- type: bind
source: ./frontend/src
target: /app/src
command: ng serve --host 0.0.0.0
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- static_data:/static
depends_on:
- backend
- frontend
ports:
- 80:80
- 443:443
worker:
build:
context: ./backend
image: *backend
restart: "no"
env_file: *envfile
command: ["celery", "--app=sasta.celery.app", "worker", "--concurrency=1", "--hostname=worker@%h", "--loglevel=INFO"]
volumes:
- type: bind
source: ./backend
target: /app
depends_on:
- rabbitmq
- db
rabbitmq:
hostname: rabbitmq
image: rabbitmq:3
ports:
- "5672:5672"
restart: on-failure
volumes:
postgres_data:
static_data: