-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (49 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
50 lines (49 loc) · 1.02 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
secrets:
api_env:
file: devops/api/.env.production
redis_env:
file: .env.redis
postgres_password:
file: devops/postgres/.password
postgres_user:
file: devops/postgres/.user
services:
api:
build:
dockerfile: Dockerfile
context: api/
secrets:
- api_env
environment:
DJANGO_ENV_FILE: /run/secrets/api_env
volumes:
- media_data:/app/src/etherbeing/media
ports:
- 127.0.0.1:7000:8000
depends_on:
- postgres
- redis
restart: unless-stopped
redis:
# 6379
image: redis:latest
secrets:
- redis_env
volumes:
- redis_data:/data
restart: unless-stopped
postgres:
image: postgres:latest
secrets:
- postgres_user
- postgres_password
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
- POSTGRES_USER_FILE=/run/secrets/postgres_user
volumes:
- postgres_data:/var/lib/postgresql/
restart: unless-stopped
volumes:
postgres_data:
media_data:
redis_data: