-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.example-cms.yml
54 lines (50 loc) · 1.5 KB
/
docker-compose.example-cms.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
version: "3" # https://github.com/compose-spec/compose-spec/blob/3814397/spec.md#version-top-level-element
services:
cms:
build: .
image: taccwma/example-cms:latest
volumes:
- .:/code
ports:
- 127.0.0.1:8000:8000
command: ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
container_name: core_cms
hostname: core_cms
networks:
- core_cms_net
postgres:
image: postgres:14.9
environment:
- POSTGRES_PASSWORD=taccforever
- POSTGRES_USER=postgresadmin
- POSTGRES_DB=taccsite
- PGDATA=/var/lib/postgresql/data/taccsite
volumes:
- core_cms_postgres_data:/var/lib/postgresql/data
- ./conf/postgres/pg_db.secret:/var/lib/postgresql/pg_db.secret
- ./conf/postgres/pg_user.secret:/var/lib/postgresql/pg_user.secret
- ./conf/postgres/pg_password.secret:/var/lib/postgresql/pg_password.secret
hostname: core_cms_postgres
container_name: core_cms_postgres
networks:
- core_cms_net
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.0
ulimits:
memlock: -1
environment:
- ES_HEAP_SIZE:1g
- discovery.type=single-node
volumes:
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- core_cms_es_data:/usr/share/elasticsearch/data
container_name: core_cms_elasticsearch
ports:
- 127.0.0.1:9201:9200
networks:
- core_cms_net
volumes:
core_cms_postgres_data:
core_cms_es_data:
networks:
core_cms_net: