-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 1.13 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
version: "3"
services:
db:
restart: always
image: postgres
container_name: postgres
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: TBQForms
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- '5432:5432'
api:
build:
context: ./TBQForms_server/
dockerfile: Dockerfile
image: tbqforms_server
container_name: tbqforms_server
depends_on:
- db
restart: always
env_file: ./TBQForms_server/.env
ports:
- '3000:3000'
volumes:
- .:/home/node/TBQforms_server
- ./node_modules:/home/node/TBQforms_server/node_modules
proxy:
image: nginx
container_name: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/ssl:/etc/nginx/ssl
- ./TBQForms_client/build:/home/client/build
ports:
- '443:443'
- '80:80'
depends_on:
- api
restart: always