-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
70 lines (67 loc) · 2.26 KB
/
docker-compose.yaml
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
version: "3"
services:
domain:
image: language-app/web-api
build:
context: .
dockerfile: packages/web-api/Dockerfile
container_name: language-app-web-api
# entrypoint: "npm run dev"
# entrypoint: "tail -f /dev/null"
ports:
- "${DOMAIN_PORT}:${DOMAIN_PORT}"
- 5556:5555 # prisma studio
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${DOMAIN_POSTGRES_SCHEMA}
- PORT=${DOMAIN_PORT}
- TOKEN_SECRET=${TOKEN_SECRET}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- WEB_APP_URL=http://localhost:3000
tty: true
volumes:
- ./packages/common-core:/app/packages/common-core
- ./packages/common-platform:/app/packages/common-platform
- ./packages/common-utils:/app/packages/common-utils
- ./packages/web-api:/app/packages/web-api
postgres:
image: postgres
container_name: language-app-postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ${HOME}/language-app-postgres-data/:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
auth:
image: language-app/auth-web-api
build:
context: .
dockerfile: packages/auth-web-api/Dockerfile
container_name: language-app-auth-web-api
# entrypoint: "npm run start"
# entrypoint: "tail -f /dev/null"
ports:
- "${AUTH_PORT}:${AUTH_PORT}"
- 5555:5555 # prisma studio
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${AUTH_POSTGRES_SCHEMA}
- PORT=${AUTH_PORT}
- TOKEN_SECRET=${TOKEN_SECRET}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- WEB_APP_URL=http://localhost:3000
- DOMAIN_IP=domain
- QUEUE_URL=${QUEUE_URL}
tty: true
volumes:
- ./packages/common-core:/app/packages/common-core
- ./packages/common-platform:/app/packages/common-platform
- ./packages/common-utils:/app/packages/common-utils
- ./packages/auth-web-api:/app/packages/auth-web-api