-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 1.19 KB
/
docker-compose.yml
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
version: '3.3'
services:
redis:
image: "redis:alpine"
expose:
- 6379
ports:
- "6379:6379"
restart: always
environment:
- REDIS_REPLICATION_MODE=master
backend:
build: ./src
command: bash -c 'uvicorn main:app --host 0.0.0.0'
environment:
- DATABASE_URL=postgresql+asyncpg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}
- JWT_SECRET=${JWT_SECRET}
- JWT_ALGORITHM=${JWT_ALGORITHM}
- JWT_EXPIRATION=${JWT_EXPIRATION}
- SUPERUSER_NAME=${SUPERUSER_NAME}
- SUPERUSER_PASSWORD=${SUPERUSER_PASSWORD}
- AWS_URI=${AWS_URI}
- AWS_ACCCESS_KEY=${AWS_ACCCESS_KEY}
- AWS_SERVICE_NAME=${AWS_SERVICE_NAME}
- AWS_SECRET_KEY=${AWS_SECRET_KEY}
- AWS_REGION=${AWS_REGION}
- AWS_BUCKET=${AWS_BUCKET}
- FILE_COUNT=${FILE_COUNT}
- FILE_SIZE=${FILE_SIZE}
ports:
- 8000:8000
restart: always
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
depends_on:
- redis
server:
restart: always
image: nginx
volumes:
- ./server/conf.d:/etc/nginx/conf.d
ports:
- "80:80"