-
Notifications
You must be signed in to change notification settings - Fork 0
/
prod.docker-compose.yml
101 lines (94 loc) · 1.86 KB
/
prod.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
services:
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: valhub
POSTGRES_PASSWORD: valhub
POSTGRES_USER: valhub
ports:
- "5432:5432"
volumes:
- valhub:/data/db
api:
build:
context: ./valhub
dockerfile: prod.Dockerfile
args:
djangosk: ${djangosk}
env_file:
- .env
environment:
PGDATABASE: valhub
PGUSER: valhub
PGHOST: db
PG_DATABASE_URI: "postgresql://valhub:valhub@db/valhub"
DJANGO_SUPERUSER_USERNAME: ${admin_username}
DJANGO_SUPERUSER_PASSWORD: ${admin_password}
DJANGO_SUPERUSER_EMAIL: ${admin_email}
DJANGO_SECRET_KEY: ${djangosk}
ports:
- "8005:8005"
depends_on:
- db
- sqs
s3:
build:
context: ./s3Emulator
dockerfile: prod.Dockerfile
env_file:
- .env
environment:
HOST: 0.0.0.0
ports:
- "5000:5000"
depends_on:
- api
ec2:
build:
context: ./ec2
dockerfile: prod.Dockerfile
env_file:
- .env
environment:
HOST: 0.0.0.0
ports:
- "7000:7000"
depends_on:
- api
react-client:
stdin_open: true
build:
context: ./frontend
dockerfile: prod.Dockerfile
environment:
HOST: 0.0.0.0
volumes:
- ./frontend:/opt/app:delegated
ports:
- "3000:3000"
depends_on:
- api
- s3
sqs:
image: softwaremill/elasticmq:latest
ports:
- "9324:9324"
environment:
- "ELASTICMQ_OPTS=-Dconfig.file=/opt/elasticmq.conf"
volumes:
- ./custom.conf:/opt/elasticmq.conf
- ./application.ini:/opt/docker/conf/application.ini
worker:
build:
context: ./workers
dockerfile: prod.Dockerfile
env_file:
- .env
ports:
- "8500:8500"
depends_on:
- api
- s3
- sqs
volumes:
valhub: