-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
44 lines (40 loc) · 906 Bytes
/
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
version: "3"
services:
db:
image: "postgres:13.1"
container_name: nktolmin_db
environment:
POSTGRES_USER: nktolmin
POSTGRES_PASSWORD: nktolmin
PGDATA: /var/lib/postgresql/data/nktolmin/
ALLOW_IP_RANGE: 0.0.0.0/0
ports:
- "5432:5432"
volumes:
- database:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-q", "-U", "nktolmin"]
redis:
image: "redis:alpine"
container_name: nktolmin_redis
ports:
- "6379:6379"
volumes:
- redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
# worker:
# image: redis:alpine
# depends_on:
# - redis
# command: rq worker --url redis://redis:6379
# links:
# - redis
volumes:
database:
name: nktolmin_database
redis:
name: nktolmin_redis
# networks:
# app-network:
# driver: bridge