-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 936 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 936 Bytes
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
version: "3"
services:
mongodb:
image: "mongo:6.0.3"
container_name: aa_dr_mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data_container:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: "aa-dr-root"
MONGO_INITDB_ROOT_PASSWORD: "cpac"
backend:
container_name: aa-dr-backend
build:
context: ./backend
dockerfile: Dockerfile.local
ports:
- "3001:3001"
env_file:
- backend.env
environment:
- AWS_CONFIG_FILE=/root/.aws/config
- AWS_PROFILE=cpac-webmaster
volumes:
- ./backend:/app
- ~/.aws:/root/.aws
frontend:
container_name: aa-dr-frontend
build:
context: ./frontend
dockerfile: Dockerfile.local
depends_on:
- backend
ports:
- "3000:3000"
env_file:
- frontend.env
volumes:
- ./frontend:/app
- /app/node_modules
volumes:
mongodb_data_container: