-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
61 lines (60 loc) · 1.31 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
57
58
59
60
61
version: '3.8'
services:
api:
platform: linux/amd64
build:
dockerfile: dev.dockerfile
context: ./backend
image: webpersonal.azurecr.io/jb-api:latest
restart: always
volumes:
- ./backend/src:/app/src
- /app/src/node_modules/
ports:
- 8080:8080
expose:
- 8080
links:
- db
environment:
- NODE_ENV=development
- SERVER_PORT=8080
- DB_HOST=db
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=mysecretpassword
- DB_NAME=postgres
- MAIL_PASSWORD=password
- MAIL_SMTP_SERVER=smtp.gmail.com
- MAIL_SMTP_SERVER_PORT=465
frontend-prod:
build:
context: ./frontend
image: webpersonal.azurecr.io/jb-frontend:latest
ports:
- 8081:80
expose:
- 8081
db:
image: postgres:14.7-alpine # this is the image that we want to run (aka app)
restart: always
ports:
- 5432:5432
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
volumes:
- db-data:/var/lib/postgresql/data
test:
build:
dockerfile: test.dockerfile
context: ./backend
links:
- db
- api
volumes:
db-data: {}