-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
97 lines (95 loc) · 1.96 KB
/
docker-compose.yaml
File metadata and controls
97 lines (95 loc) · 1.96 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3.7'
services:
front_end:
build:
context: ./frontend
dockerfile: Dockerfile.develop
env_file:
- ./frontend/frontend.env
ports:
- 3000:3000
networks:
- backend_network
container_name: frontend
yesod_app:
build:
context: ./yesodApp
dockerfile: Dockerfile.develop
volumes:
- type: bind
source: ./yesodApp/app
target: /app/app
- type: bind
source: ./yesodApp/config
target: /app/config
- type: bind
source: ./yesodApp/src
target: /app/src
- type: bind
source: ./yesodApp/static
target: /app/static
- type: bind
source: ./yesodApp/templates
target: /app/templates
- type: bind
source: ./yesodApp/test
target: /app/test
env_file:
- ./yesodApp/yesodApp.env
ports:
- 4000:3000
networks:
- backend_network
- database_network
container_name: yesodApp
stdin_open: true
depends_on:
- database
actix:
build:
context: ./actix
env_file:
- ./actix/actix.env
ports:
- 3500:8088
networks:
- backend_network
- database_network
container_name: actix
volumes:
- type: bind
source: ./actix/src
target: /app/src
depends_on:
- database
database:
image: postgres:12.1
environment:
POSTGRES_DB: my_database
POSTGRES_USER: yesodApp
POSTGRES_PASSWORD: yesodApp
ports:
- 5432:5432
networks:
- database_network
container_name: database
rocket:
build:
context: ./rocket
env_file:
- ./rocket/rocket.env
ports:
- 4500:8000
networks:
- backend_network
- database_network
container_name: rocket
volumes:
- type: bind
source: ./rocket/src
target: /app/src
depends_on:
- database
networks:
backend_network:
database_network: