-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.15 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
version: '3.8'
services:
postgres:
container_name: pg
image: postgres:alpine3.16
restart: always
env_file: .env
environment:
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_USER: $DB_USERNAME
POSTGRES_DB: $DB_DATABASE
volumes:
- ./docker/data:/data/db
ports:
- "5432:${DB_PORT}"
networks:
- node-network
backend:
container_name: backend
image: backend
build:
context: .
restart: always
env_file: .env
depends_on:
- postgres
links:
- postgres
- redis
ports:
- "3000:${PORT}"
networks:
- node-network
redis:
container_name: redis
privileged: true
image: redis:6.2.5-alpine
ports:
- "6379:6379"
networks:
- node-network
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:6.10
environment:
PGADMIN_DEFAULT_EMAIL: 'test@gmail.com'
PGADMIN_DEFAULT_PASSWORD: 'changeme'
volumes:
- pgadmin:/root/.pgadmin
depends_on:
- postgres
ports:
- "5050:80"
networks:
- node-network
volumes:
data:
pgadmin:
networks:
node-network:
driver: bridge