-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
52 lines (48 loc) · 1.18 KB
/
docker-compose.prod.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
version: '3.7'
services:
postgres:
image: postgres:14.0-alpine3.14
restart: always
tty: true
volumes:
- postgres-prod:/var/lib/postgresql/data
environment:
POSTGRES_DB: studybites
POSTGRES_USER: sb-admin
POSTGRES_PASSWORD: sb-password
backend:
depends_on:
- postgres
build:
context: ./api/
dockerfile: Dockerfile
restart: always
tty: true
volumes:
- ./api/:/api/
- /api/node_modules/
environment:
PORT: 3017
JWT_SECRET: tvXqYGduhyMw28EzyBxaGrFP8zQsmRG93GZHrmADmHsU9WwB7nbULUsJ98aAqWzM
DATABASE_URL: postgres://sb-admin:sb-password@postgres:5432/studybites
SENTRY_DSN: https://[email protected]/6060921
command: yarn run:prod
frontend:
depends_on:
- backend
build:
context: ./front/
dockerfile: Dockerfile
restart: always
tty: true
volumes:
- ./front/:/front/
- /front/node_modules/
ports:
- '443:443'
environment:
REACT_APP_SB_HOST: https://studybites.app
REACT_APP_SELF_HOST: https://studybites.app
NODE_ENV: production
volumes:
postgres-prod: {}