forked from barimehdi77/ft_transcendence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (52 loc) · 1.28 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
version: '3.3'
services:
api:
build: api/
container_name: api
depends_on:
- postgres
environment:
DATABASE_URL: postgresql://user:password@192.168.77.4:5432/db?schema=public
NODE_ENV: development
PORT: 8080
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
ports:
- "8080:8080"
restart: on-failure
networks:
network:
ipv4_address: 192.168.77.3
front-end:
build: src/
container_name: front-end
depends_on:
- postgres
- api
ports:
- "80:80"
restart: on-failure
networks:
network:
ipv4_address: 192.168.77.2
postgres:
image: postgres
container_name: postgres
hostname: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
networks:
network:
ipv4_address: 192.168.77.4
restart: unless-stopped
networks:
network:
ipam:
driver: default
config:
- subnet: "192.168.77.0/24"