-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
64 lines (62 loc) · 1.42 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
version: '3'
services:
db:
image: postgres:12-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=carto
- POSTGRES_PASSWORD=carto
- POSTGRES_DB=carto_db
ports:
- "5432:5432"
restart: always
elasticsearch:
image: elasticsearch:6.8.21
ports:
- "9200:9200"
- "9300:9300"
environment:
- "discovery.type=single-node"
restart: always
healthcheck:
test: "curl http://elasticsearch:9200"
interval: "1s"
timeout: "3s"
retries: 60
web:
# Use the parent folder as context to gain access to the frontend
build:
context: .
dockerfile: backend/Dockerfile
args:
- http_proxy
- https_proxy
- no_proxy
- npm_registry=${NPM_REGISTRY}
- PYPI_URL=${PYPI_URL}
- PYPI_HOST=${PYPI_HOST}
restart: always
ports:
- "80:5000"
environment:
- "ELASTICSEARCH_URL=elasticsearch:9200"
- "MAIL_SERVER=smtp"
- "DATABASE_URL=postgresql://carto:carto@db:5432/carto_db"
depends_on:
- elasticsearch
- db
healthcheck:
test: "curl http://web:5000"
interval: "1s"
timeout: "3s"
retries: 60
smtp:
container_name: smtp_relay
image: namshi/smtp
restart: always
ports:
- "25:25"
volumes:
postgres_data: