-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
executable file
·66 lines (61 loc) · 1.59 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
client:
image: node:20-alpine
user: node
entrypoint: sh -c
working_dir: /home/node
command: '"npm install && npm run dev"'
ports:
- 5173:5173
volumes:
- ./client:/home/node
server:
image: node:20-alpine
user: node
tty: true
stdin_open: true
working_dir: /home/node
entrypoint: sh -c
command: '"npm install && npm run dev"'
ports:
- 8000:8000
volumes:
- ./server:/home/node
environment:
- POSTGRES_LINK=postgres://root:password@postgres:5432/app
- MONGODB_CONNECTION_STRING=mongodb://mongo:27017/terraflora?authSource=admin
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
postgres:
image: registry.gitlab.com/dalibo/postgresql_anonymizer:latest
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- ./entrypoint.sh:/docker-entrypoint-initdb.d/entrypoint.sh
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: app
entrypoint: ["/bin/bash", "/docker-entrypoint-initdb.d/entrypoint.sh"]
command: tail -f /dev/null
adminer:
image: adminer:4.8.1
restart: unless-stopped
ports:
- 8080:8080
mongo:
image: mongo
ports:
- 127.0.0.1:27017:27017
volumes:
- mongo-data:/data/db
- ./SampleCollections:/SampleCollections
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
working_dir: /SampleCollections
volumes:
mongo-data:
postgres-data: