-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.18 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
52
53
54
55
56
57
58
version: '3.7'
services:
backend:
container_name: backend
restart: always
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend/:/home/backend/app
- /home/backend/app/node_modules
ports:
- "3002:3002"
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- ./backend/.env
networks:
- docker-net
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
entrypoint: ["/bin/sh", "./entrypoint.sh"]
ports:
- "3000:3000"
volumes:
- ./frontend:/home/frontend/app
- /home/frontend/app/node_modules
networks:
- docker-net
postgres_db:
container_name: postgres_db
image: postgres:12
restart: always
ports:
- "5432:5432"
networks:
docker-net:
ipv4_address: 10.0.0.10
env_file:
- .env
environment:
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_USER: $DB_USERNAME
POSTGRES_DB: postgres
PGDATA: /tmp
volumes:
- ./postgres/data:/var/lib/postgresql/data
networks:
docker-net:
driver: bridge
ipam:
config:
- subnet: "10.0.0.10/24"