forked from fbescodam/ft_transcendence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
55 lines (48 loc) · 1015 Bytes
/
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
version: '3'
services:
frontend:
container_name: ft_frontend
build: ./frontend/
restart: unless-stopped
ports:
- "4173:4173"
- "5173:4173"
networks:
- ft_transcendence_network
depends_on:
- backend
backend:
container_name: ft_backend
build: ./backend/
restart: unless-stopped
ports:
- "3000:3000"
networks:
- ft_transcendence_network
volumes:
- statics:/transcendence/static/avatars
depends_on:
- database
database:
container_name: ft_database
image: "postgres:14"
restart: unless-stopped
# env_file:
# - ./backend/.env
environment:
- POSTGRES_HOST=localhost
- POSTGRES_PORT=5432
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=test
networks:
- ft_transcendence_network
volumes:
- postgres:/var/lib/postgresql/data
expose:
- 5432
networks:
ft_transcendence_network:
volumes:
postgres:
statics: