-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (75 loc) · 2.12 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
70
71
72
73
74
75
version: '3'
services:
rabbitmq:
image: rabbitmq:3
container_name: rabbit-node1
ports:
- "5672:5672"
hostname: rabbit-localhost
mysql_db:
image: mysql:8.0.31
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: $MYSQL_ALLOW_EMPTY_PASSWORD
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
MYSQL_DATABASE: $MYSQL_DATABASE
container_name: mysequel
ports:
- "3306:3306"
postgres_db:
image: postgres:15.3-alpine
environment:
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_DB: $POSTGRES_DB
POSTGRES_HOST_AUTH_METHOD: $POSTGRES_HOST_AUTH_METHOD
container_name: postgres_db
ports:
- "5432:5432"
jwt_nginx:
image: lewisemm/vistagrid-nginx:v1.24.0
build:
context: reverseproxy/
container_name: vistagrid_ngx
ports:
- "5000:5000"
user_service:
image: lewisemm/user_service:v2023.5
build:
context: user_service/
environment:
SQLALCHEMY_DATABASE_URI: $USER_SERVICE_SQLALCHEMY_DATABASE_URI
JWT_SECRET_KEY: $USER_SERVICE_JWT_SECRET_KEY
USER_SERVICE_CONFIG_MODULE: $USER_SERVICE_CONFIG_MODULE
ports:
- "5001:5001"
container_name: user_service
depends_on:
- postgres_db
- jwt_nginx
command: [
"python", "-m", "flask", "run", "--host=0.0.0.0", "-p 5001"
]
image_service:
image: lewisemm/image_service:v2023.5
build:
context: image_service/
environment:
DJANGO_SETTINGS_MODULE: $IMAGE_SERVICE_DJANGO_SETTINGS_MODULE
DATABASE_URL: $IMAGE_SERVICE_DATABASE_URL
SECRET_KEY: $IMAGE_SERVICE_SECRET_KEY
AWS_SECRET_ACCESS_KEY: $IMAGE_SERVICE_AWS_SECRET_ACCESS_KEY
AWS_ACCESS_KEY_ID: $IMAGE_SERVICE_AWS_ACCESS_KEY_ID
S3_BUCKET: $IMAGE_SERVICE_S3_BUCKET
CELERY_BROKER_URL: $IMAGE_SERVICE_CELERY_BROKER_URL
container_name: image_service
ports:
- "8000:8000"
depends_on:
- mysql_db
- rabbitmq
- jwt_nginx
command: [
"./wait-for-it.sh", "mysql_db:3306", "-t", "40", "--",
"python", "manage.py", "runserver", "0.0.0.0:8000"
]