-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
58 lines (53 loc) · 973 Bytes
/
docker-compose.yaml
File metadata and controls
58 lines (53 loc) · 973 Bytes
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"
services:
frontend:
image: front
container_name: front
build: ./front-end
ports:
- "3000:3000"
volumes:
- ./front-end:/usr/src/app
- /usr/src/app/node_modules
- media:/media
- certs:/etc/ssl/certs
environment:
- NODE_ENV=development
networks:
- transcendence
depends_on:
- backend
backend:
image: back
container_name: back
build:
context: ./back-end
dockerfile: Dockerfile
volumes:
- ./back-end:/app
- media:/media
- certs:/etc/ssl/certs
ports:
- "8000:8000"
env_file: .env
networks:
- transcendence
depends_on:
- db
db:
image: postgres:15
container_name: db
env_file: .env
networks:
- transcendence
ports:
- "5432:5432"
volumes:
- data:/var/lib/postgresql/data
volumes:
data:
media:
certs:
networks:
transcendence:
name: transcendence