-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 933 Bytes
/
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
version: '3.7'
services:
proxy:
container_name: proxy
build:
context: ./infra/docker
dockerfile: nginx.dockerfile
restart: always
ports:
- '80:80'
volumes:
- type: bind
source: ./infra/nginx/services/client
target: /etc/nginx/conf.d
- type: bind
source: ./infra/nginx/nginx.conf
target: /etc/nginx/nginx.conf
- type: bind
source: ./infra/nginx/logs/client
target: /var/log/nginx
- type: bind
source: ./client/build
target: /var/www/public
networks:
- nogsantos
node_api:
container_name: api
build:
context: ./infra/docker
dockerfile: node.dockerfile
restart: always
ports:
- '3000:3000'
networks:
- nogsantos
volumes:
- type: bind
source: ./api
target: /var/www
volumes:
volume:
networks:
nogsantos:
driver: bridge