-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
164 lines (155 loc) · 3.65 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
services:
db:
container_name: db
restart: "no"
image: postgres:14.2
environment:
POSTGRES_DB: lcfs
POSTGRES_USER: lcfs
POSTGRES_PASSWORD: development_only
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- shared_network
redis:
container_name: redis
restart: "no"
image: bitnami/redis:6.2.5
environment:
REDIS_PASSWORD: development_only
ports:
- '6379:6379'
volumes:
- redis_data:/bitnami/redis/data
networks:
- shared_network
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: lcfs
RABBITMQ_DEFAULT_PASS: development_only
RABBITMQ_DEFAULT_VHOST: lcfs
volumes:
- ./docker/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
ports:
- "15672:15672" # Management UI
- "5672:5672" # RabbitMQ Port
networks:
- shared_network
# clamav:
# image: clamav/clamav:stable_base
# volumes:
# - clamsocket:/var/run/clamav/
# - clamav:/var/lib/clamav
# ports:
# - "3310:3310"
# networks:
# - shared_network
minio:
image: minio/minio:latest
restart: "no"
command: "server --console-address :9001 --address :9000 /data"
environment:
- MINIO_ROOT_USER=s3_access_key
- MINIO_ROOT_PASSWORD=development_only
- MINIO_SERVER_URL=http://localhost:9000
volumes:
- s3:/data
ports:
- "9000:9000"
- "9001:9001"
networks:
- shared_network
create_bucket:
image: minio/mc
restart: "no"
container_name: minio_init
entrypoint: >
/bin/sh -c "
until mc alias set myminio http://minio:9000 s3_access_key development_only; do
echo 'Waiting for MinIO...';
sleep 5;
done;
mc mb myminio/lcfs
"
networks:
- shared_network
depends_on:
- minio
backend:
container_name: backend
restart: "no"
build:
context: ./backend
dockerfile: 'Dockerfile'
target: dev
volumes:
- type: bind
source: ./backend
target: /app
consistency: cached
environment:
LCFS_DB_HOST: db
LCFS_DB_PORT: 5432
LCFS_DB_USER: lcfs
LCFS_DB_PASS: development_only
LCFS_DB_BASE: lcfs
LCFS_REDIS_HOST: redis
LCFS_REDIS_PORT: 6379
LCFS_REDIS_PASSWORD: development_only
LCFS_RELOAD: true
LCFS_CHES_CLIENT_ID: ${LCFS_CHES_CLIENT_ID}
LCFS_CHES_CLIENT_SECRET: ${LCFS_CHES_CLIENT_SECRET}
LCFS_CHES_AUTH_URL: ${LCFS_CHES_AUTH_URL}
LCFS_CHES_SENDER_EMAIL: ${LCFS_CHES_SENDER_EMAIL}
LCFS_CHES_SENDER_NAME: ${LCFS_CHES_SENDER_NAME}
LCFS_CHES_EMAIL_URL: ${LCFS_CHES_EMAIL_URL}
APP_ENVIRONMENT: dev
ports:
- '8000:8000' # Application port
- '5678:5678' # Debugger port
depends_on:
- db
- redis
- create_bucket
- rabbitmq
# - clamav
networks:
- shared_network
frontend:
container_name: frontend
restart: "no"
build:
dockerfile: Dockerfile.dev
context: ./frontend
command: npm run dev --force
ports:
- "3000:3000"
volumes:
- type: bind
source: ./frontend
target: /app
- type: volume
source: node_modules
target: /app/node_modules
networks:
- shared_network
volumes:
postgres_data:
name: lcfs_postgres_data
redis_data:
name: lcfs_redis_data
node_modules:
name: lcfs_node_data
s3:
name: lfcs_s3_data
clamav:
name: clamav
clamsocket:
name: clamsocket
networks:
shared_network:
name: shared_network