-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (50 loc) · 1.32 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3.8'
services:
back-end:
image: node:alpine
working_dir: /usr/local/server
volumes:
- ./:/usr/local/server
environment:
- PORT=4000
- DATABASE_URL=postgres://wtrprj:wtrpwd@database/messagerie
- JWT_SECRET=WEB_TEMPS_REEL_PROJET_MESSAGERIE_SECRET
ports:
- "127.0.0.1:4000:4000"
command: sh -c " npm install --workspace=back-end && npm run start --workspace=back-end"
front-end:
image: node:alpine
working_dir: /usr/local/server
volumes:
- ./:/usr/local/server
environment:
- PORT=3000
ports:
- "127.0.0.1:3000:3000"
- "127.0.0.1:3010:3010"
command: sh -c " npm install --workspace=front-end && npm run start --workspace=front-end"
database:
image: postgres:14-alpine
restart: always
volumes:
- database:/var/lib/postgresql/data
environment:
- POSTGRES_USER=wtrprj
- POSTGRES_PASSWORD=wtrpwd
- POSTGRES_DB=messagerie
ports:
- target: 5432
published: 5432
protocol: tcp
adminer:
image: adminer
ports:
- "8080:8080"
environment:
ADMINER_DEFAULT_DB_DRIVER: postgres
ADMINER_DEFAULT_DB_HOST: database
ADMINER_DEFAULT_DB_NAME: messagerie
ADMINER_DESIGN: nette
ADMINER_PLUGINS: tables-filter tinymce
volumes:
database: {}