-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose_dev.yml
More file actions
83 lines (76 loc) · 2.06 KB
/
Copy pathdocker-compose_dev.yml
File metadata and controls
83 lines (76 loc) · 2.06 KB
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
#https://dev.to/erezhod/setting-up-a-nestjs-project-with-docker-for-back-end-development-30lg
# https://www.grottedubarbu.fr/docker-nginx-reverse-proxy/
version: '3.8'
services:
reverse_proxy:
depends_on:
- backend
- frontend
- postgres
volumes:
- ./reverse_proxy/data_to_container/nginx.temp:/etc/nginx/nginx.temp
build:
context: ./reverse_proxy
dockerfile: ./Dockerfile
container_name: reverse_proxy
# command: /bin/sh -c "envsubst '$${APP_HOST} $${REACT_APP_RP_BACK_URL} $${REACT_APP_RP_FRONT_URL} '< /etc/nginx/nginx.temp > /etc/nginx/nginx.conf && openssl req -x509 -newkey rsa:4096 -keyout /etc/ssl/pong.key -out /etc/ssl/.pong.csr -days 365 -nodes -subj '/CN=nginx.csejault' && exec nginx -g 'daemon off;'"
# command: /bin/sh /home/nginx/start.sh
command: /bin/sh /home/nginx/entrypoint.sh
restart: unless-stopped
env_file:
- ./.env
ports:
- 4443:443
frontend:
depends_on:
- backend
container_name: frontend
build:
context: ./frontend
target: development
dockerfile: ./Dockerfile_dev
command: sh /home/node/scripts/dev_entrypoint.sh
volumes:
- ./frontend/react:/usr/src/app/
- ./frontend/scripts/:/home/node/scripts/
restart: unless-stopped
env_file:
- ./.env
ports:
- 3000:3000
backend:
depends_on:
- postgres
container_name: backend
build:
context: ./backend
target: development
dockerfile: ./Dockerfile_dev
volumes:
- ./backend/data_to_container/pong/:/usr/src/app/
command: sh /home/node/dev_entrypoint.sh
restart: unless-stopped
env_file:
- ./.env
postgres:
container_name: postgres
image: postgres:latest
volumes:
- pgVolume:/var/lib/postgresql/data
restart: always
env_file:
- ./.env
ports:
- "3020:3020"
pg_admin:
depends_on:
- postgres
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
env_file:
- ./.env
ports:
- "3030:80"
volumes:
pgVolume: