-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
56 lines (51 loc) · 1014 Bytes
/
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
version: "3.9"
services:
server:
image: nginx
volumes:
- ./nginx-server/nginx-dev.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
depends_on:
- app
- api
app:
image: node:14-alpine
working_dir: /next-app
command: ["npm", "run", "dev"]
volumes:
- ./next-app:/next-app
depends_on:
- api
api:
image: node:14-alpine
working_dir: /fastify-api
command: ["npm", "run", "dev"]
environment:
# - MONGO_USERNAME=
# - MONGO_PASSWORD=
- MONGO_HOST=db
# - MONGO_PORT=
# - MONGO_DEFAULT_AUTH_DB=
# - MONGO_OPTIONS
secrets:
- cookie_private
- jwt_public
- jwt_private
volumes:
- ./fastify-api:/fastify-api
depends_on:
- db
db:
image: mongo
restart: always
volumes:
- ./mongo-db:/data/db
secrets:
# api
cookie_private:
file: ./cookie_private.pem
jwt_public:
file: ./jwt_public.pem
jwt_private:
file: ./jwt_private.pem