This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
109 lines (105 loc) · 2.3 KB
/
docker-compose.dev.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: "3.8"
services:
frontend:
container_name: ecollector-frontend-dev
build:
context: ./frontend
target: develop-stage
dockerfile: Dockerfile
command: /bin/sh -c "yarn && quasar dev"
restart: always
environment:
- GRAPHQL_URL
- SERVER_URL_API
- NODE_ENV
depends_on:
- api_server
volumes:
- ./frontend/:/app
- /app/node_modules
api_server:
container_name: ecollector-api-dev
build:
context: ./api
target: development
dockerfile: Dockerfile
command: npm run start:debug
ports:
- "9229:9229"
environment:
- POSTGRES_HOST
- POSTGRES_PORT
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- JWT_SECRET
- JWT_EXPIRATION_TIME
- SERVER_URL_ORIGIN
- API_PORT
- NGINX_SERVER_NAME
- AWS_REGION
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_BUCKET_NAME
- AWS_S3_ENDPOINT
- NODE_ENV=development
depends_on:
- postgres
volumes:
- ./api/:/app
- /app/node_modules
postgres:
container_name: ecollector-postgres-dev
image: postgres:14.2
working_dir: /application
ports:
- "5432:5432"
volumes:
- /data/postgres:/data/postgres
environment:
- POSTGRES_HOST
- POSTGRES_PORT
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
pgadmin:
links:
- postgres:postgres
container_name: ecollector-pgadmin-dev
image: dpage/pgadmin4
environment:
- PGADMIN_HOST
- PGADMIN_SUBDOMAIN
- PGADMIN_DEFAULT_EMAIL
- PGADMIN_DEFAULT_PASSWORD
depends_on:
- postgres
volumes:
- /data/pgadmin:/root/.pgadmin
nginx:
build:
context: ./nginx
target: development
dockerfile: Dockerfile
container_name: ecollector-nginx-dev
volumes:
- ./nginx:/etc/nginx/templates
ports:
- "8080:80"
depends_on:
- api_server
- frontend
environment:
- NGINX_SERVER_NAME
- API_HOST
- API_PORT
- FRONTEND_HOST
- FRONTEND_PORT
- API_SUBDOMAIN
- NGINX_MAX_BODY
- PGADMIN_HOST
# mailhog:
# image: mailhog/mailhog:latest
# container_name: ecollector-mailhog-dev
# ports:
# - "8025:8025"