-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
69 lines (65 loc) · 1.87 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "3"
services:
# mongodb_burger:
# image: mongodb/mongodb-community-server:7.0.2-ubuntu2204
# container_name: mongodb_burger
# environment:
# - MONGO_INITDB_ROOT_USERNAME=${DB_USER}
# - MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD}
# ports:
# - "27017:27017"
# volumes:
# - ~/docker_data/mongo:/data/db
# networks:
# - backend_burger_network
redis_burger:
image: redis:7.2.4
container_name: redis_burger
restart: unless-stopped
command:
- "--save 60 100"
- "--save 300 50"
- "--save 900 1"
- "--appendonly yes"
- "--requirepass ${REDIS_PASSWORD}"
# ports:
# - "6379:6379"
volumes:
- ~/docker_data/redis:/data
networks:
- backend_burger_network
backend_burger:
image: backend_burger:${VERSION}
container_name: backend_burger
build:
context: .
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_REGION_NAME=${AWS_REGION_NAME}
- SQS_QUEUE_NAME=${SQS_QUEUE_NAME}
- S3_BUCKET_URL=${S3_BUCKET_URL}
- S3_BUCKET_NAME=${S3_BUCKET_NAME}
- S3_LOGS_FOLDER=${S3_LOGS_FOLDER}
- DB_URL=${DB_URL}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- NEW_RELIC_LICENSE_KEY=${NEW_RELIC_LICENSE_KEY}
- NEW_RELIC_APP_NAME=${NEW_RELIC_APP_NAME}
- NEW_RELIC_APP_NAME=backend_burger_docker
- NEW_RELIC_LOG=/home/myuser/log/newrelic.log
- REDIS_HOST=redis_burger
- REDIS_PASSWORD=${REDIS_PASSWORD}
- APP_ENVIRONMENT=prod
- LOGFIRE_PYDANTIC_PLUGIN_RECORD=${LOGFIRE_PYDANTIC_PLUGIN_RECORD}
env_file:
- .env
ports:
- "8000:8000"
networks:
- backend_burger_network
depends_on:
- redis_burger
# - mongodb_burger
networks:
backend_burger_network:
name: backend_burger_network