-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.13 KB
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
# Compose for development using volumes to ensure hot reload
version: "3"
services:
web:
build:
context: ./
dockerfile: Dockerfile.dev
expose:
- 8000
environment:
- PORT=8000
ports:
- "8888:8000"
volumes:
- ./:/app
# exclude dotenvs in volume
- /app/.envs
env_file:
- ./.envs/docker.env
depends_on:
- db
- redis
db:
restart: unless-stopped
image: postgres:12
ports:
- "8882:5432"
volumes:
- sora_postgres:/var/lib/postgresql/data
env_file:
- .envs/docker.env
redis:
image: redis
command: redis-server
restart: unless-stopped
expose:
- 6379
ports:
- "8883:6379"
volumes:
- sora_redis:/var/lib/redis
- sora_redis:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
elasticsearch:
image: elasticsearch:7.14.2
restart: unless-stopped
environment:
- discovery.type=single-node
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
volumes:
esdata1:
sora_redis:
sora_postgres: