-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
61 lines (61 loc) · 1.38 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
version: '3'
services:
postgres:
container_name: 'postgres'
image: postgres
environment:
POSTGRES_PASSWORD: root
volumes:
- ./docker-pg-init-scripts:/docker-entrypoint-initdb.d
# if you want to save pg data
# - pgdata:/var/lib/postgresql/data/
ports:
- "5433:5432"
postgres-client:
container_name: 'postgres-client'
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "dcard@example.com"
PGADMIN_DEFAULT_PASSWORD: "dcard"
ports:
- "16543:80"
depends_on:
- postgres
redis:
container_name: 'redis'
image: redis
command: redis-server --requirepass root
restart: always
# if you want to save redis data
# volumes:
# - ./redis-data:/data
ports:
- "6380:6379"
redis-client:
container_name: 'redis-client'
image: erikdubbelboer/phpredisadmin
environment:
- ADMIN_USER=admin
- ADMIN_PASS=admin
- REDIS_1_HOST=redis
- REDIS_1_PORT=6379
- REDIS_1_AUTH=root
restart: always
depends_on:
- redis
ports:
- "8081:80"
backend:
image: 'dcard-simple-demo'
container_name: 'dcard-simple-demo'
build: ./
# replace original .env file defined value
environment:
DB_HOST: postgres
REDIS_ENDPOINT: redis:6379
restart: always
ports:
- "8080:8080"
depends_on:
- postgres
- redis