-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·97 lines (93 loc) · 1.99 KB
/
docker-compose.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
version: '3.8'
services:
angularjs:
image: node:20.6-alpine3.17
container_name: angularjs
working_dir: /app
command:
- /bin/sh
- -c
- |
tail -F /dev/null
# user: '1000:1000'
volumes:
- /app/node_modules
- ./angularjs:/app
ports:
- '4200:4200'
restart: unless-stopped
reactjs:
image: node:20.6-alpine3.17
container_name: reactjs
working_dir: /app
command:
- /bin/sh
- -c
- |
tail -F /dev/null
# user: '1000:1000'
volumes:
- /app/node_modules
- ./reactjs:/app
ports:
- '3000:3000'
- '4000:4000'
restart: unless-stopped
expressjs:
image: node:19.0-alpine3.16
container_name: expressjs
working_dir: /app
command:
- /bin/sh
- -c
- |
tail -F /dev/null
# user: "1000:1000"
volumes:
- /app/node_modules
- ./expressjs:/app
ports:
- '5000:5000'
restart: unless-stopped
# setting up environment variables
environment:
- NODE_ENV=development
- pg_master_database=database-name
- pg_master_user=username
- pg_master_password=password
- pg_master_host=ip-address
- pg_master_port=5432
jsonserver:
image: node:17.7.2-alpine3.14
container_name: jsonserver
command: sh -c "tail -F /dev/null"
user: '1000:1000'
working_dir: /app
volumes:
- /app/node_modules
- ./jsonserver:/app
ports:
- '3001:3001'
django:
image: python:3.12.0b4-bookworm
container_name: django
working_dir: /app
command:
- /bin/sh
- -c
- |
tail -F /dev/null
# user: "1000:1000"
volumes:
- ./python:/app
ports:
- '8000:8000'
restart: unless-stopped
env_file: .env
environment:
- DJANGO_DEBUG=True
- pg_master_database=database-name
- pg_master_user=username
- pg_master_password=password
- pg_master_host=ip-address
- pg_master_port=5432