-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (63 loc) · 1.59 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
services:
# app:
# build:
# context: .
# dockerfile: dev.Dockerfile
# ports:
# - ${APP_LISTEN_PORT}:${APP_LISTEN_PORT}
# depends_on:
# - postgres
# - redis
# - elasticsearch
# volumes:
# - ./:/app
# networks:
# - lexicon_bo
postgres:
image: "postgres:16.2"
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
environment:
POSTGRES_ROOT_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_ROOT_HOST: "%"
POSTGRES_DATABASE: "${POSTGRES_DB_NAME}"
POSTGRES_USER: "${POSTGRES_USERNAME}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_ALLOW_EMPTY_PASSWORD: 1
volumes:
- "bo-postgres:/var/lib/postgresql/data"
networks:
- lexicon_bo
redis:
image: "redis:7.2-alpine"
restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
ports:
- ${REDIS_PORT}:${REDIS_PORT}
networks:
- lexicon_bo
volumes:
- redis:/data
# elasticsearch:
# image: elasticsearch:8.14.0
# ports:
# - ${ELASTIC_SEARCH_API_PORT}:${ELASTIC_SEARCH_API_PORT}
# - ${ELASTIC_SEARCH_TRANSPORT_PORT}:${ELASTIC_SEARCH_TRANSPORT_PORT}
# environment:
# - discovery.type=single-node
# - xpack.security.enabled=true
# - ELASTIC_PASSWORD=${ELASTIC_SEARCH_PASS}
# networks:
# - lexicon_bo
# volumes:
# - elasticsearch:/usr/share/elasticsearch/data
networks:
lexicon_bo:
driver: bridge
volumes:
bo-postgres:
driver: local
redis:
driver: local
# elasticsearch:
# driver: local