-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (40 loc) · 1016 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
45
46
## Como usar:
# Considerando Docker Compose V2 e S.O. Linux
#
# docker compose -f docker-compose.yml up --build -d
# docker compose logs -f
# docker exec -it website /bin/bash
# docker compose down
## Copias entre container/local
# docker cp website:/home/node/app/index.html .
# docker cp index.html website:/home/node/app/
## Docker full clean
# docker stop $(docker ps -qa)
# docker rm -f $(docker ps -qa)
# docker rmi -f $(docker images -qa)
# docker volume rm -f $(docker volume ls -q)
# docker network rm $(docker network ls -q)
version: '3.9'
services:
###################################
# Application
###################################
app-website:
build:
context: .
dockerfile: $PWD/Dockerfile
image: erivando/website-node:latest
container_name: website
restart: always
user: "root:node"
ports:
- "8083:80"
networks:
- developer
volumes:
postgresql_data:
driver: local
networks:
developer:
name: developer
driver: bridge