-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (69 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
74 lines (69 loc) · 1.53 KB
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
68
69
70
71
72
73
74
version: '3.8'
services:
main:
container_name: main
build:
context: .
env_file:
- .env
volumes:
- .:/app
- /app/node_modules
ports:
- ${PORT}:${PORT}
- ${ALTERNATIVE_PORT}:${ALTERNATIVE_PORT}
command: yarn start
depends_on:
- postgres
restart: always
postgres:
container_name: postgres
image: postgres:15
env_file:
- .env
environment:
PG_DATA: /var/lib/postgresql/data
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
volumes:
# - pgdata:/var/lib/postgresql/data
- ./postgresData:/var/lib/postgresql/data
restart: always
pgadmin:
container_name: pg_admin
image: dpage/pgadmin4
env_file:
- .env
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
ports:
- ${PGADMIN_LOCAL_PORT}:${PGADMIN_NATIVE_PORT}
restart: unless-stopped
volumes:
- pgadmin:/root/.pgadmin
# chat-service:
# container_name: chat-service
# build: ./src/chat-service
# env_file:
# - ./src/chat-service/.env
# volumes:
# - ./src/chat-service:/chat
# - /chat/node_modules
# ports:
# - ${CHAT_SERVICE_PORT}:${CHAT_SERVICE_PORT}
# restart: always
#
# rmq:
# container_name: rmq
# image: rabbitmq:3-management
# env_file:
# - .env
# ports:
# - ${RABBITMQ_LOCAL_PORT}:${RABBITMQ_NATIVE_PORT}
# - "5672:5672"
# restart: always
volumes:
pgdata:
pgadmin:
pgdata-chat: