-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
67 lines (60 loc) · 1.36 KB
/
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
version: '3.8'
services:
#POSTGRESQL DATABASE
postgres:
image: library/postgres
# hostname: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 4321
POSTGRES_DB: online_learning_db
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
depends_on:
- backend
#POSTGRESQL DATABASE MANAGEMENT TOOL
pgadmin:
image: dpage/pgadmin4
depends_on:
- postgres
ports:
- "80:80"
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD: admin
restart: unless-stopped
#FASTAPI BACKEND
backend:
image: backend
build: .
ports:
- "8000:8000"
#NEXTJS FRONTEND
frontend:
image: frontend
build: ./web/
ports:
- "3000:3000"
depends_on:
- postgres
#JENKINS PIPELINE WORKFLOW
# jenkins:
# image: jenkins/jenkins:lts
# restart: always
# privileged: true
# user: root
# ports:
# - 8080:8080
# - 50000:50000
# container_name: jenkins
# environment:
# - "JAVA_OPTS=-Dhudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true"
# volumes:
# - /home/ubuntu/jenkins_compose/jenkins_configuration:/var/jenkins_home
# - /var/run/docker.sock:/var/run/docker.sock
# - .:/usr/code
volumes:
postgres-data: