-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
50 lines (46 loc) · 1.22 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
version: '2'
networks:
nuxt:
driver: bridge
services:
### Applications Code Container #############################
applications:
image: tianon/true
volumes:
- ./src/:/usr/src/app
- ./tmp/logs:/var/log/nginx
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config/${ENVIRONMENT}.conf:/etc/nginx/conf.d/site.conf
- ${SSL_CERT_PATH}:/etc/ssl/certs/crt.crt
- ${SSL_CERT_KEY_PATH}:/etc/ssl/private/key.key
container_name: nuxt-app
networks:
- nuxt
### nginx container ###############
nginx:
build: ./dockers/nginx/
ports:
- 80:80
- 443:443
expose:
- 80
- 443
links:
- nuxtjs
volumes_from:
- applications
container_name: nuxt-nginx
networks:
- nuxt
### NuxtJS frontend Container #############################
nuxtjs:
build:
context: ./src/
volumes_from:
- applications
ports:
- 3000:3000
container_name: nuxt-js
command: ["npm", "run", "buildStart"]
networks:
- nuxt