-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.56 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
version: '3.7'
services:
demo-db:
container_name: demo-db
image: mongo
ports:
- 27018:27017
volumes:
- mongodata:/data/db
demo-backend:
container_name: demo-backend
build: backend
volumes:
- ./backend/app.js:/app/app.js
- ./backend/config:/app/config
- ./backend/lib:/app/lib
- ./backend/public:/app/public
ports:
- 1337:1337
depends_on:
- demo-db
environment:
MONGODB: mongodb://demo-db:27017/apos-nuxt-demo
NODE_ENV: ${NODE_ENV:-production}
NODE_APP_INSTANCE: docker
BASE_URL: http://localhost/cms
demo-frontend:
container_name: demo-frontend
build: frontend
ports:
- 3333:3333
depends_on:
- demo-backend
volumes:
- ./frontend/assets:/app/assets
- ./frontend/components:/app/components
- ./frontend/layouts:/app/layouts
- ./frontend/pages:/app/pages
- ./frontend/plugins:/app/plugins
- ./frontend/static:/app/static
- ./frontend/store:/app/store
- ./frontend/nuxt.config.js:/app/nuxt.config.js
environment:
NODE_ENV: ${NODE_ENV:-production}
BASE_URL: http://demo-backend:1337/cms
demo-reverse-proxy:
container_name: demo-reverse-proxy
image: nginx:alpine
volumes:
- ./backend/public:/usr/share/nginx/backend:ro
- ./frontend/assets:/usr/share/nginx/frontend:ro
- ./reverse-proxy/local.conf:/etc/nginx/nginx.conf:ro
- ./reverse-proxy/logs:/etc/nginx/logs:rw
depends_on:
- demo-frontend
ports:
- 80:80
volumes:
mongodata: