-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (81 loc) · 1.83 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "3.9"
services:
urbexclient:
container_name: urbexclient
image: urbexclient
build:
context: ./client
depends_on:
- urbexapi
volumes:
- ./client/components:/client/components
- ./client/hooks:/client/hooks
- ./client/pages:/client/pages
- ./client/public:/client/public
- ./client/styles:/client/styles
- ./client/context:/client/context
ports:
- 8080:8080
command: npm run dev
restart: always
urbexapi:
container_name: urbexapi
image: urbexapi
build:
context: ./api
depends_on:
- urbexdb
ports:
- 8081:8081
volumes:
- ./api/server.js:/api/server.js
- ./api/models:/api/models
- ./api/controllers:/api/controllers
- ./api/router:/api/router
- ./api/auth:/api/auth
- ./api/images:/api/images:rw
- ./api/utils:/api/utils
- ./api/middlewares:/api/middlewares
command: npm run watch
restart: always
urbexdb:
container_name: urbexdb
image: mysql:latest
volumes:
- ./db/data:/var/lib/mysql/
- ./db/db.cnf:/etc/mysql/conf.d/custom.cnf
ports:
- 3306:3306
cap_add:
- SYS_NICE
environment:
MYSQL_USER: root
MYSQL_HOST: localhost
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: urbex
restart: always
urbexnginx:
container_name: urbexnginx
image: nginx:latest
depends_on:
- urbexclient
- urbexapi
- urbexadmin
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
restart: always
urbexadmin:
container_name: urbexadmin
image: urbexadmin
build:
context: ./admin
ports:
- 8082:8082
depends_on:
- urbexapi
volumes:
- ./admin/src:/admin/src
command: npm start
restart: always