-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
68 lines (64 loc) · 1.42 KB
/
compose.yaml
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
version: '3.5'
networks:
the_continental:
name: the_continental
services:
mongodb:
image : mongo:4.4.6
container_name: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- /etc/timezone:/etc/timezone:rw
- /etc/localtime:/etc/localtime:rw
ports:
- 27017:27017
restart: unless-stopped
networks:
- the_continental
backend:
image : thecontinentalbackend
container_name: thecontinentalbackend
build:
context: ./
dockerfile: backend.dockerfile
working_dir: /var/www
volumes:
- /etc/timezone:/etc/timezone:rw
- /etc/localtime:/etc/localtime:rw
# - ./backend/:/var/www
ports:
- 3100:3100
- 4000:4000
networks:
- the_continental
frontend:
image : thecontinentalfrontend
container_name: thecontinentalfrontend
build:
context: ./
dockerfile: frontend.dockerfile
working_dir: /var/www
volumes:
- /etc/timezone:/etc/timezone:rw
- /etc/localtime:/etc/localtime:rw
# - ./frontend/:/var/www
ports:
- 9000:9000
networks:
- the_continental
nginx:
image : nginx
container_name: nginx-server
depends_on:
- frontend
- backend
restart: always
build:
context: ./
dockerfile: nginx.dockerfile
ports:
- 3050:80
networks:
- the_continental