File tree 4 files changed +35
-1
lines changed
4 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 64
64
- run : docker compose -f docker-compose.yml run --rm api migrate-database
65
65
66
66
# start necessary containers
67
- - run : docker compose -f docker-compose.yml up -d api frontend pdf print browserless database docker-host http-cache mail reverse-proxy
67
+ - run : docker compose -f docker-compose.yml up -d api frontend pdf print browserless database docker-host http-cache mail pg-admin reverse-proxy
68
68
69
69
# pull cypress while container are starting up
70
70
- run : docker compose pull e2e
Original file line number Diff line number Diff line change @@ -131,6 +131,18 @@ services:
131
131
memory : ${DB_MEMORY_LIMIT:-128G}
132
132
cpus : ${DB_CPU_LIMIT:-8}
133
133
134
+ pg-admin :
135
+ image : dpage/pgadmin4
136
+ container_name : ' ecamp3-pg-admin'
137
+ depends_on :
138
+ - database
139
+ environment :
140
+
141
+ - PGADMIN_DEFAULT_PASSWORD=admin
142
+ - PGADMIN_CONFIG_ENABLE_SERVER_PASS_EXEC_CMD=True
143
+ volumes :
144
+ - ./pgadmin-servers.json:/pgadmin4/servers.json
145
+
134
146
mail :
135
147
image : maildev/maildev
136
148
container_name : ' ecamp3-mail'
Original file line number Diff line number Diff line change
1
+ {
2
+ "Servers" : {
3
+ "1" : {
4
+ "Group" : " Servers" ,
5
+ "Name" : " ecamp3-database" ,
6
+ "Host" : " database" ,
7
+ "Port" : 5432 ,
8
+ "Username" : " ecamp3" ,
9
+ "PasswordExecCommand" : " echo 'ecamp3'" ,
10
+ "MaintenanceDB" : " postgres" ,
11
+ "SSLMode" : " prefer" ,
12
+ "DBRestriction" : " ecamp3dev"
13
+ }
14
+ }
15
+ }
Original file line number Diff line number Diff line change @@ -53,6 +53,13 @@ http {
53
53
proxy_set_header Upgrade $http_upgrade;
54
54
proxy_set_header Connection $connection_upgrade;
55
55
}
56
+
57
+ location /pgadmin/ {
58
+ proxy_set_header X-Script-Name /pgadmin;
59
+ proxy_set_header Host $host;
60
+ proxy_pass http://pg-admin:80/;
61
+ proxy_redirect off;
62
+ }
56
63
}
57
64
server {
58
65
listen 3004;
You can’t perform that action at this time.
0 commit comments