-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
71 lines (65 loc) · 1.75 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
version: "3.7"
services:
postgres:
image: postgres:14
restart: on-failure
environment:
POSTGRES_USER: atv
POSTGRES_PASSWORD: atv
POSTGRES_DB: atv
ports:
- "5437:5432"
volumes:
- pgdata:/var/lib/postgresql/data
container_name: atv-db
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- elastic-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
container_name: atv-elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.15.2
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://atv-elastic:9200
ELASTICSEARCH_HOSTS: '["http://atv-elastic:9200"]'
container_name: atv-kibana
clamav:
image: clamav/clamav:stable
hostname: atv-clamav
ports:
- "3310:3310"
container_name: atv-clamav
django:
build:
context: .
target: development
env_file:
- docker-compose.env.yaml
environment:
DATABASE_URL: postgres://atv:atv@atv-db/atv
DATABASE_HOST: atv-db
volumes:
- .:/app
- django-media-volume:/var/media/
ports:
- "8081:8000"
depends_on:
- postgres
container_name: atv-backend
volumes:
pgdata:
driver: local
elastic-data:
driver: local
django-media-volume:
networks:
default:
name: helsinki