This repository was archived by the owner on Nov 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
70 lines (66 loc) · 1.62 KB
/
docker-compose.dev.yml
File metadata and controls
70 lines (66 loc) · 1.62 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
version: '3.2'
services:
mongo:
image: mongo
restart: unless-stopped
environment:
MONGO_INITDB_DATABASE: "ORDER_MANAGEMENT"
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- "./database/init/:/docker-entrypoint-initdb.d/"
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
api:
build:
context: ./api/
dockerfile: Dockerfile.dev
restart: unless-stopped
volumes:
- "./api/src/:/usr/src/app/src/"
- "/usr/src/app/node_modules/"
# depends_on:
# - mongo
environment:
NODE_ENV: "docker"
DATABASE_HOST: "mongodb://mongo:27017/ORDER_MANAGEMENT"
DATABASE_NAME: "ORDER_MANAGEMENT"
DATABASE_USER: "app"
DATABASE_PASSWORD: "app_secret"
HASH_ALGORITHM: "sha512"
COOKIE_DOMAIN: "localhost"
webapp:
build:
context: ./webapp/
dockerfile: Dockerfile.dev
restart: unless-stopped
environment:
REACT_APP_API_URL: "/api"
REACT_APP_PUBLIC_KEY: ""
volumes:
- "./webapp/src/:/usr/src/app/src/"
- "./webapp/public/:/usr/src/app/public/"
- "/usr/src/app/node_modules/"
stdin_open: true
depends_on:
- api
dev_proxy:
build:
context: ./dev_proxy/
dockerfile: Dockerfile.dev
restart: always
ports:
- "80:80/tcp"
environment:
API_HOST: "api:3000"
REACT_HOST: "webapp:3000"
DOMAIN: "localhost"
depends_on:
- api
- webapp