forked from pedrojoaquim01/P6-Snelf
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
64 lines (57 loc) · 1.45 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
57
58
59
60
61
62
63
64
# Use postgres/example user/password credentials
version: '3.1'
services:
snelf-postgres:
image: postgres:14-alpine
restart: always
container_name: snelf-postgres
environment:
POSTGRES_DB: testejp
POSTGRES_USER: testejp
POSTGRES_PASSWORD: testejp
ports:
- 54320:5432
volumes:
- ./init-scripts/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
- snelf-data:/var/lib/postgresql/data
snelf-back:
build: ./snelf_backend
container_name: snelf-back
environment:
- DB_SERVER=snelf-postgres
- POSTGRES_DB=testejp
- POSTGRES_USER=testejp
- POSTGRES_PASSWORD=testejp
volumes:
- ./snelf_backend:/back_app
ports:
- 7768:8000
depends_on:
- snelf-postgres
fasttext:
build: ./snelf_backend/_model
container_name: fasttext
volumes:
- ./:/fasttext
snelf-front:
build: ./snelf_frontend
container_name: snelf-front
stdin_open: true
# Mount our host directory to the docker container
# Mount (.) current directory to the docker container code/snelf-frontend
# Reflect file changes from host to container
volumes:
- ./snelf_frontend:/front_app
- /front_app/node_modules
ports:
- 7767:80
depends_on:
- snelf-back
environment:
- DOCKER_CLIENT_TIMEOUT=120
- COMPOSE_HTTP_TIMEOUT=120
volumes:
snelf-data:
#networks:
# default:
# name: snelf-network