-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.build.yml
73 lines (67 loc) · 1.58 KB
/
docker-compose.build.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
version: "3.8"
services:
maildev:
image: djfarrelly/maildev
command: bin/maildev --web 1080 --smtp 1025 --hide-extensions STARTTLS
ports:
- "1025:1025"
- "1080:1080"
restart: always
api:
image: egapro_api
build:
context: ./packages/api
dockerfile: Dockerfile
environment:
EGAPRO_SEND_EMAILS: "True"
EGAPRO_SMTP_HOST: maildev
EGAPRO_SMTP_PORT: 1025
EGAPRO_SMTP_LOGIN: ""
EGAPRO_SMTP_PASSWORD: ""
EGAPRO_SMTP_SSL: ""
EGAPRO_TEST_DBHOST: test_db
EGAPRO_DBHOST: ${EGAPRO_DBHOST:-db}
EGAPRO_DBNAME: ${EGAPRO_DBNAME:-egapro}
EGAPRO_DBPORT: ${EGAPRO_DBPORT:-5432}
EGAPRO_DBUSER: ${EGAPRO_DBUSER:-postgres}
EGAPRO_DBPASS: ${EGAPRO_DBPASS:-postgres}
EGAPRO_STAFF: ${EGAPRO_STAFF:-""}
ports:
- 2626:2626
depends_on:
- db
- test_db
restart: "no"
db:
restart: always
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: egapro
ports:
- 5437:5432
volumes:
- pgdata:/var/lib/postgresql/data
test_db:
restart: always
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_egapro
ports:
- 5436:5432
volumes:
- ./packages/api/egapro/sql/init_test.sql:/docker-entrypoint-initdb.d/init_test.sql
app:
image: egapro_app
build:
context: .
dockerfile: ./packages/app/Dockerfile
ports:
- 3000:3000
restart: "no"
volumes:
pgdata:
api_egginfos: