-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
executable file
·78 lines (70 loc) · 1.78 KB
/
docker-compose.yaml
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
version: '3.2'
# && gunicorn config.wsgi:application --workers 4 --bind 0.0.0.0:8000 --reload
services:
homme-web:
container_name: "${PROJECT_NAME}_backend_${ENV}"
build:
context: ./
dockerfile: Dockerfile
command: bash -c '
python manage.py migrate
&& python manage.py initdata
&& python manage.py runserver 0.0.0.0:8000
'
volumes:
- "./:/code"
environment:
- HOMME_DB_PORT=5432
ports:
- $WEB_PORT:8000
depends_on:
- homme-db
homme-db:
container_name: "${PROJECT_NAME}_postgres_${ENV}"
image: postgis/postgis:14-3.3
# restart: always
volumes:
- homme-postgres_data:/var/lib/postgres
environment:
POSTGRES_DB: "homme"
POSTGRES_USER: "adminuser"
POSTGRES_PASSWORD: "testadmin"
expose:
- $HOMME_DB_PORT:5432
ports:
- $HOMME_DB_PORT:5432
# nginx:
# container_name: "${PROJECT_NAME}_nginx_${ENV}"
# image: nginx:latest
# volumes:
# - "./:/code/homme-backend"
# - "./nginx/nginx-$ENV.conf:/etc/nginx/conf.d/default.conf"
# ports:
# - $NGINX_PORT:80
# depends_on:
# - homme-web
# restart: always
# links:
# - homme-web:homme-web
# elastic:
# container_name: "${PROJECT_NAME}_elasticsearch_${ENV}"
# image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
# environment:
# - discovery.type=single-node
# - transport.host=localhost
# - transport.tcp.port=9300
# - http.port=9200
# - http.host=0.0.0.0
# ulimits:
# memlock:
# soft: -1
# hard: -1
# volumes:
# - ./data/es:/usr/share/elasticsearch/data
# restart: always
# ports:
# - $ELASTIC_PORT:9201
# expose:
# - 9201
volumes:
homme-postgres_data: