forked from Marantesss/feup-sinf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·71 lines (65 loc) · 1.78 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
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
database:
image: postgres:13.0-alpine
restart: unless-stopped
volumes:
- dbdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}:${DB_PORT}
pgAdmin:
image: dpage/pgadmin4:4.27
restart: unless-stopped
depends_on:
- database
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- ${PGADMIN_PORT}:80
backend:
image: scope/scope-backend
restart: unless-stopped
build:
context: ./scope-backend
dockerfile: Dockerfile
volumes:
- ./scope-backend/:/app
- /app/node_modules
ports:
- ${APP_BACKEND_DEV_PORT}:${APP_BACKEND_DEV_PORT}
environment:
APP_NAME: ${APP_NAME}
PORT: ${APP_BACKEND_DEV_PORT}
DB_CLIENT: ${DB_CLIENT}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
JM_CLIENT_SECRET: ${JM_CLIENT_SECRET}
JM_SUBSCRIPTION: ${JM_SUBSCRIPTION}
JM_ACCOUNT: ${JM_ACCOUNT}
frontend:
image: scope/scope-frontend
restart: unless-stopped
build:
context: ./scope-frontend
dockerfile: Dockerfile
volumes:
- ./scope-frontend/:/app
- /app/node_modules
ports:
- ${APP_FRONTEND_DEV_PORT}:${APP_FRONTEND_DEV_PORT}
environment:
VUE_APP_NAME: ${APP_NAME}
VUE_APP_FRONTEND_DOMAIN: ${APP_FRONTEND_DOMAIN}
VUE_APP_FRONTEND_DEV_PORT: ${APP_FRONTEND_DEV_PORT}
VUE_APP_BACKEND_DOMAIN: ${APP_BACKEND_DOMAIN}
VUE_APP_BACKEND_PORT: ${APP_BACKEND_DEV_PORT}
volumes:
dbdata: