-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 869 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 869 Bytes
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
services:
backend:
build: ./backend
command: python3 -m flask run --host=0.0.0.0 -p 3050
volumes:
- ./development.env:/usr/shrunk/backend/.env
- ./backend:/usr/shrunk/backend
env_file:
- ./development.env
depends_on:
- mongodb
- httpd
frontend:
build: ./frontend
volumes:
- ./development.env:/usr/shrunk/frontend/.env
- ./frontend:/usr/shrunk/frontend
env_file:
- ./development.env
depends_on:
- httpd
httpd:
image: httpd:2.4
stdin_open: true
tty: true
ports:
- "4343:4343"
volumes:
- ./httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf
- ./httpd:/usr/local/apache2/logs
mongodb:
hostname: mongodb
container_name: shrunk-mongo
image: mongo:latest
attach: false # We don't care.
ports:
- '27017:27017'