-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (64 loc) · 1.27 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"
volumes:
database-data:
pgadmin-data:
mongo-data:
networks:
core:
external: false
services:
core:
container_name: sanny-io-core
image: mcr.microsoft.com/devcontainers/javascript-node:22
command: sleep infinity
ports:
- 3000:3000
networks:
- core
depends_on:
- database
- mongo
volumes:
- .:/workspace:cached
links:
- database
database:
container_name: sanny-io-database
image: postgres:14
restart: always
volumes:
- database-data:/var/lib/postgresql/data/
env_file: .env
networks:
- core
ports:
- 5432:5432
mongo:
container_name: sanny-io-mongo
image: mongo
restart: always
networks:
- core
environment:
MONGO_INITDB_ROOT_USERNAME: mongo
MONGO_INITDB_ROOT_PASSWORD: mongo
MONGO_INITDB_DATABASE: payload
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
pgadmin:
image: dpage/pgadmin4
container_name: sanny-io-pgadmin
restart: always
networks:
- core
depends_on:
- database
ports:
- 8888:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
volumes:
- pgadmin-data:/var/lib/pgadmin