-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (73 loc) · 1.54 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3.9"
name: the_mentes
services:
frontend:
container_name: the_mentes_frontend
restart: always
build: ./apps/frontend
ports:
- "${FRONTEND_EXPOSE_PORT}:3000"
networks:
app_network:
aliases:
- frontend_host
docs:
container_name: the_mentes_docs
restart: always
build: ./apps/docs
ports:
- "${DOCS_EXPOSE_PORT}:80"
networks:
app_network:
aliases:
- docs_host
admin:
container_name: the_mentes_admin
restart: always
build: ./apps/admin
ports:
- "${ADMIN_EXPOSE_PORT}:80"
networks:
app_network:
aliases:
- admin_host
api:
container_name: the_mentes_api
restart: always
build: ./apps/api
ports:
- "${API_EXPOSE_PORT}:3000"
environment:
DB_HOST: ${DB_HOST}
DB_EXPOSE_PORT: ${DB_EXPOSE_PORT}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
depends_on:
- database
networks:
app_network:
aliases:
- api_host
database:
image: postgres:latest
restart: always
container_name: the_mentes_db
ports:
- "${DB_EXPOSE_PORT}:5432"
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ./var/db_data:/var/lib/postgresql/data
networks:
app_network:
aliases:
- "${DB_HOST}"
networks:
app_network:
name: app_net
driver: bridge
ipam:
driver: default