forked from zhizhi10/Mutation_Maker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·94 lines (94 loc) · 2.49 KB
/
docker-compose.yml
File metadata and controls
executable file
·94 lines (94 loc) · 2.49 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '3.4'
services:
# API provides an API that schedules and monitors tasks
api:
build:
context: ./api
dockerfile: Dockerfile
restart: always
ports:
- '8000:8000'
depends_on:
- redis
- worker
networks:
- local
# Worker provides a Celery worker that processes tasks from the Redis queue
worker:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- RUN_LAMBDA_DOCKER=1
- LAMBDA_FN_NAME
depends_on:
- redis
- lambda
networks:
- local
# Redis provides Redis in-memory database that serves as a queue for Celery tasks
redis:
image: redis:6-alpine
ports:
- '6379'
networks:
- local
# Frontend provides the frontend React server that communicates with the API
# It is exposed only through the Webserver service
frontend:
build:
context: ./frontend
# Select live-reload-server target for the development npm server with live reload
# target: live-reload-server
# Select the production-server target for the production-ready Nginx server with built artifacts
target: production-server
volumes:
- ./frontend/public:/frontend/public
- ./frontend/src:/frontend/src
depends_on:
- api
networks:
- local
# Webserver is the main entry point for the user, proxying "/v1" requests to the API and all remaining requests to the frontend
webserver:
build:
context: ./webserver
dockerfile: Dockerfile
ports:
- '3000:3000'
depends_on:
- frontend
- api
networks:
- local
# Lambda is a container for local AWS Lambda function execution by SAM CLI: https://github.com/awslabs/aws-sam-cli
lambda:
build:
context: ./lambda
dockerfile: Dockerfile
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - ./lambda:/lambda
environment:
- SAM_CLI_TELEMETRY=0
ports:
- '3001'
command: sam local start-lambda --docker-volume-basedir "$PWD/lambda" --skip-pull-image --host 0.0.0.0
networks:
- local
# Monitor provides a GUI for inspecting the Celery task queue
# monitor:
# build:
# context: ./backend
# dockerfile: Dockerfile
# ports:
# - "5555:5555"
# entrypoint: flower
# command: -A tasks --port=5555 --broker=redis://redis:6379/0
# depends_on:
# - redis
networks:
local: