-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 883 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 883 Bytes
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
version: "3.9"
services:
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: ["redis-server", "--appendonly", "yes"]
backend:
restart: always
depends_on:
- redis
env_file:
- ./.env
environment:
# - BASE_URL=${BASE_URL?Variable not set}
- CIPHER_KEY=${CIPHER_KEY?Variable not set}
- S3_BUCKET_NAME=${S3_BUCKET_NAME?Variable not set}
- REDIS_URL=redis://redis:6379
# - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID?Variable not set}
# - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY?Variable not set}
# - AWS_REGION=${AWS_REGION?Variable not set}
build:
context: ./backend
ports:
- 8000:8000
upload:
restart: always
build:
context: ./upload
ports:
- 80:80
volumes:
redis_data: