-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
55 lines (51 loc) · 1.12 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
version: "3.4"
services:
db:
container_name: "db"
logging:
driver: none
build:
context: ./database
dockerfile: Dockerfile
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root_db!
- MONGO_INITDB_DATABASE=admin
command: ["--auth", "--quiet", "--bind_ip_all"]
restart: unless-stopped
ports:
- 27017:27017
volumes:
- swealy_db:/data/db
api:
container_name: "api"
depends_on:
- db
build:
context: ./server
dockerfile: Dockerfile.dev
restart: unless-stopped
environment:
- COOKIE_SECRET=2x4tTxQ7jRHqLRl8bbFYoUADDLbyfcNh
- JWT_SECRET=De3Y6aKGywtQzWl7c0e4hYslK1lRb85u
- HTTP_PORT=5000
- MONGO_URI=mongodb://admin:swealyAdminPasswd@db:27017/swealy
volumes:
- ./server:/app
ports:
- 5000:5000
client:
stdin_open: true
container_name: "client"
depends_on:
- api
build:
context: ./client
dockerfile: Dockerfile.dev
volumes:
- ./client:/app
ports:
- "3000:3000"
volumes:
swealy_db:
driver: local