-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
59 lines (52 loc) · 1.11 KB
/
docker-compose.yaml
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
version: "3"
services:
server:
container_name: "litecode_server"
restart: unless-stopped
build: ./server
env_file: ./server/config.env
depends_on:
- db
ports:
- 3000:3000
expose:
- 3000
volumes:
- ./server:/home/node/app
client:
container_name: 'litecode_client'
build: ./client
env_file: ./client/config.env
ports:
- 3001:3000
expose:
- 3000
volumes:
- react_build:/app/build
depends_on:
- server
db:
container_name: 'litecode_mongodb'
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: litecode
MONGO_INITDB_ROOT_PASSWORD: litecode123
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
nginx:
container_name: "litecode_nginx"
image: nginx:mainline-alpine
restart: unless-stopped
ports:
- "1337:80"
volumes:
- ./nginx:/etc/nginx/conf.d
- react_build:/var/www/html/
depends_on:
- server
- client
volumes:
mongodb_data_container:
react_build: