-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.11 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
version: '3.9'
services:
db:
image: postgres:latest
environment:
POSTGRES_DB: database
POSTGRES_USER: user
POSTGRES_PASSWORD: 1234567890
volumes:
- .db:/var/lib/postgresql/data
ports:
- 5432:5432
api:
container_name: backend
build: ./readcode-backend/
restart: always
#volumes:
# ./backend/: veut dire qu'on mount directory ./backend/ au WORKDIR de l'image /usr/src/app
# - "./backend/:/usr/src/app"
# - /usr/src/app/node_modules/
#volumes:
# - ./readcode-backend/:/usr/src/app
# - /usr/src/app/node_modules
ports:
- 8080:8080
# variables d'environnement
environment:
- NODE_ENV=PROD
depends_on:
- db
# Front-end React
frontend:
container_name: frontend
build: ./readcode-frontend/
# Tentative d'implementer le livereload
#stdin_open: true
#volumes:
# - ./readcode-frontend/:/usr/src/app:delegated
# - /usr/src/app/node_modules
#environment:
# - CHOKIDAR_USEPOLLING=true
ports:
- 3000:3000
depends_on:
- api
volumes:
dbdata6: {}