-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (57 loc) · 1.64 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
version: "2"
services:
postgres:
image: postgres:15.2
container_name: matchbox_db
volumes:
- ./db/:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5433:5432"
networks:
- intra
backend:
build: ./BackEnd
container_name: matchbox_backend
ports:
- "3000:3000"
depends_on:
- postgres
volumes:
- ./BackEnd:/Backend/
- /usr/Backend/node_modules
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
DATABASE_URL: ${DATABASE_URL}
OAUTH_APP_URL: ${OAUTH_APP_URL}
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
OAUTH_CLIENT_SECRET: ${OAUTH_CLIENT_SECRET}
JWT_SECRET: ${JWT_SECRET}
NODEMAILER_USER: ${NODEMAILER_USER}
NODEMAILER_PASSWORD: ${NODEMAILER_PASSWORD}
BACKEND_URL: ${BACKEND_URL}
FRONT_URL: ${FRONT_URL}
command: >
bash -c " sleep 30 &&
npx prisma migrate deploy &&
npm start"
networks:
- intra
frontend:
image: matchbox-front-img
container_name: matchbox-frontend
build:
context: ./FrontEnd
ports:
- "4000:80"
restart: unless-stopped
networks:
- intra
networks:
intra:
driver: bridge