-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
54 lines (49 loc) · 1.35 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
version: '2'
services:
# database:
# network_mode: "host"
# build: ./mysql
# image: db
# container_name: database
# ports:
# - "3306:3306"
# environment:
# MYSQL_ROOT_PASSWORD: root
# frontend:
# network_mode: "host"
# build: ./client
# image: client
# container_name: client
# volumes:
# - ./client/src:/home/front/app/src:ro
# - ./client/public:/home/front/app/public:ro
# - ./client/build:/home/front/app/build:rw
# - ./client/.env:/home/front/app/.env:ro
# - ./client/package.json:/home/front/app/package.json:rw
# - ./client/package-lock.json:/home/front/app/package-lock.json:rw
# ports:
# - "8081:8081"
backend:
restart: unless-stopped
network_mode: "host"
build: ./server
image: server
container_name: server
volumes:
- ./server/app:/home/server/app:ro
- ./server/.env:/home/server/.env:ro
- ./server/server.js:/home/server/server.js:ro
- ./server/package.json:/home/server/package.json:rw
- ./server/package-lock.json:/home/server/package-lock.json:rw
ports:
- "8080:8080"
nginx:
network_mode: "host"
build: ./nginx
image: proxy_server
container_name: nginx
restart: unless-stopped
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "81:81"