-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 1.34 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
version: '3.8'
services:
crypto-application:
image: crypto-application:latest
container_name: crypto-application
build:
context: ./investorbot
dockerfile: ./Dockerfile
ports:
- "8080:8080"
volumes:
- $HOME/.aws/credentials:/app/.aws/credentials:ro
# - $HOME/repos/stupidinvestorbot/app.db:/investorbot/app.db
environment:
AWS_ACCESS_KEY_ID: 'DUMMYIDEXAMPLE'
AWS_SECRET_ACCESS_KEY: 'DUMMYEXAMPLEKEY'
CRYPTO_KEY: ${CRYPTO_KEY}
CRYPTO_SECRET_KEY: ${CRYPTO_SECRET_KEY}
INVESTOR_APP_PATH: /investorbot/
INVESTOR_APP_ENVIRONMENT: Development
INVESTOR_APP_INTEGRATION: SIMULATED
REGION: 'eu-west-1'
SENDER_EMAIL: ${SENDER_EMAIL}
SENDER_PASSWORD: ${SENDER_PASSWORD}
RECIPIENT_EMAIL: ${RECIPIENT_EMAIL}
command: [ "sh", "-c", "cd .. && python -m investorbot run-api --host 0.0.0.0 --port 8080" ]
web-application:
container_name: web-application
# The name of the image that will be created when building this container
image: web-application:latest
build:
context: ./web
dockerfile: Dockerfile
user: "node"
environment:
- NODE_ENV=production
- PUBLIC_API_HOST_INTERNAL=http://crypto-application:8080
- PUBLIC_API_HOST=http://127.0.0.1:8080
restart: unless-stopped
ports:
- 3000:3000