-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
38 lines (37 loc) · 1.09 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
version: '3.4'
services:
ua-cloudlibrary:
image: ${DOCKER_REGISTRY-}uacloudlibrary
ports:
- 8443:443
build:
context: .
dockerfile: UACloudLibraryServer/Dockerfile
environment:
PostgreSQLUsername: uacloudlib
PostgreSQLPassword: uacloudlib
ServicePassword: uacloudlib
PostgreSQLEndpoint: db
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: uacloudlib
POSTGRES_USER: uacloudlib
POSTGRES_DB: uacloudlib
pgadmin:
image: "dpage/pgadmin4"
ports:
- 8080:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: uacloudlib
PGADMIN_CONFIG_SERVER_MODE: "False"
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False"
volumes:
- ./local-dev-docker/docker_pgadmin_servers.json:/pgadmin4/servers.json
entrypoint:
- "/bin/sh"
- "-c"
- "/bin/echo 'db:5432:*:uacloudlib:uacloudlib' > /tmp/pgpassfile && chmod 600 /tmp/pgpassfile && /entrypoint.sh"
restart: unless-stopped