-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.08 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
version: '3'
volumes:
local_postgres_data: {}
local_postgres_data_backups: {}
services:
postgres:
build:
context: .
dockerfile: ./docker/local/postgres/Dockerfile
image: poolink_local_postgres
container_name: poolink-local-postgres
volumes:
- local_postgres_data:/var/lib/postgresql/data:Z
- local_postgres_data_backups:/backups:z
env_file:
- ./.envs/.local/.postgres
ports:
- "5433:5432"
redis:
image: redis:5.0
container_name: poolink-local-redis
ports:
- "6380:6379"
django: &django
build:
context: .
dockerfile: ./docker/local/django/Dockerfile
image: poolink_local_django
container_name: poolink-local-django
depends_on:
- postgres
volumes:
- ./:/app:z
- /app/venv # Exclude venv from container filesystem
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
environment:
USE_DOCKER: "yes"
ports:
- "9015:9015"
command:
- sh
- -c
- |
while true; do
sleep 5
done