-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (53 loc) · 1.18 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
#create docker compose file for the application nestjs and postgresql
version: '3'
services:
nginx:
image: nginx:alpine
container_name: nginx
ports:
- '443:443'
- '80:80'
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./webroot:/var/www/html
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- backend
backend:
build:
context: .
dockerfile: ./Dockerfile
container_name: backend
restart: always
environment:
- NODE_ENV=production
- DB_HOST=postgres
- DB_PORT=5432
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_NAME=SCVApp
depends_on:
- postgres
postgres:
image: postgres
container_name: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: SCVApp
volumes:
- ./data/postgres:/var/lib/postgresql/data
portainer:
image: portainer/portainer-ee:latest
container_name: portainer
restart: always
ports:
- 9000:9000
- 9443:9443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
volumes:
pgdata:
portainer_data: