-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
67 lines (61 loc) · 1.45 KB
/
docker-compose.yaml
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.7"
services:
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-postgres@pgadmin.org}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-root}
PGADMIN_CONFIG_SERVER_MODE: 'False'
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
volumes:
- pgadmin:/root/.pgadmin
ports:
- 8080:80
networks:
- mynetwork
restart: unless-stopped
depends_on:
- postgres
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: root
volumes:
- postgres:/data/postgres
ports:
- 5432:5432
networks:
- mynetwork
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# northwindrs:
# image: vietnamdevsgroup/northwind-rs:latest
# environment:
# ENVIRONMENT: production
# SERVER_URL: 0.0.0.0
# SERVER_PORT: 8089
# SERVER_LOG_LEVEL: info
# RUST_LOG: info
# JWT_SECRET_KEY: mySecretKey
# JWT_LIFETIME: 2
# DATABASE_URL: postgresql://postgres:root@postgres:5432/postgres
# DATABASE_AUTO_MIGRATION: "true"
# ports:
# - 8089:8089
# networks:
# - mynetwork
# restart: unless-stopped
# depends_on:
# - postgres
networks:
mynetwork:
name: mynetwork-network
volumes:
postgres:
pgadmin: