-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (40 loc) · 948 Bytes
/
docker-compose.yaml
File metadata and controls
40 lines (40 loc) · 948 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
version: '3.8'
services:
fastify:
build:
context: ./fastify-postgresql-back-end
dockerfile: Dockerfile
target: dev
container_name: fastify
depends_on:
- postgres
env_file:
- ./fastify-postgresql-back-end/.env
image: localhost/fastify-postgresql-back-end
ports:
- 3001:3001
restart: always
postgres:
container_name: postgres
env_file:
- ./fastify-postgresql-back-end/.env
hostname: localhost
image: postgres:14
ports:
- 5433:5432
restart: always
volumes:
- postgres:/var/lib/postgresql/data
- ./fastify-postgresql-back-end/src/sql/init.sql:/docker-entrypoint-initdb.d/init.sql
react:
build:
context: ./react-cra-mui-front-end
dockerfile: Dockerfile
target: dev
container_name: react
image: localhost/react-cra-mui-front-end
ports:
- 3000:3000
restart: always
volumes:
postgres: