-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.12 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
version: '3'
volumes:
django_sample_db_dev: {}
services:
db:
image: webatoz/postgres-docker
volumes:
- django_sample_db_dev:/var/lib/postgresql/data
environment:
- POSTGRES_DB=sampledb
- POSTGRES_USER=sampleuser
- POSTGRES_PASSWORD=samplesecret
- POSTGRES_INITDB_ARGS=--encoding=UTF-8
django:
build:
context: .
dockerfile: ./Django/Dockerfile
environment:
- DJANGO_DEBUG=True
- DJANGO_DB_HOST=db
- DJANGO_DB_PORT=5432
- DJANGO_DB_NAME=sampledb
- DJANGO_DB_USERNAME=sampleuser
- DJANGO_DB_PASSWORD=samplesecret
- DJANGO_SECRET_KEY=dev_secret_key
ports:
- "8100:8100"
command:
- bash
- -c
- |
python manage.py migrate
python manage.py runserver 0:8100
restart: always
volumes:
- ./Django:/home/django/
springboot:
build:
context: .
dockerfile: ./Spring/Dockerfile
ports:
- "8080:8080"
volumes:
- ./Spring:/home/spring
nodejs:
image: webatoz/node-docker
ports:
- "3000:3000"
volumes:
- ./Nodejs-vue:/home/nodejs/