-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 1016 Bytes
/
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
39
40
41
42
43
version: "2"
services:
app:
build: ./app
volumes:
- ./app:/src/app
- ./app/data:/data
- ./app/logs/npm:/home/node/.npm/_logs
links:
- redis:redis
depends_on:
- redis
ports:
- 31380:3000
restart: always
# environment:
# PROD: 1
postgres:
build: ./postgres
restart: always
volumes:
- ./postgres/config/postgresql.conf:/etc/postgresql.conf
- ./postgres/data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: pg_password
pgadmin:
build: ./pgadmin
restart: always
ports:
- 127.0.0.1:31300:80
volumes:
- ./pgadmin/data:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: pgadmin_password
command: /bin/bash /entry.sh
redis:
image: redis:6-alpine
restart: always
volumes:
- ./redis/config/redis.conf:/etc/redis.conf
- ./redis/data:/var/lib/redis
command: redis-server /etc/redis.conf