-
Notifications
You must be signed in to change notification settings - Fork 3
/
demo_unbuilt.yml
70 lines (65 loc) · 1.43 KB
/
demo_unbuilt.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
services:
localstack:
build:
context: ./aws
dockerfile: Dockerfile
env_file:
- ./demo.env
environment:
- SERVICES=lambda,s3,ses,sns
- DEBUG=1
- PORT_WEB_UI=8081
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- ./aws:/opt/code/localstack/aws
proxy:
env_file:
- ./demo.env
build:
context: ./nginx
dockerfile: Dockerfile
volumes:
- ./nginx/dev_templates:/etc/nginx/templates
- ./nginx/log:/var/log/nginx
- ./nginx/errors:/var/www/default
db:
build:
context: ./db
dockerfile: Dockerfile
env_file:
- ./demo.env
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- ./demo.env
volumes:
- ./backend:/usr/src/app
- "/usr/src/app/node_modules"
ports:
- 4566:4566
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
env_file:
- ./demo.env
volumes:
- "./frontend:/usr/src/app"
- "/usr/src/app/node_modules"
stdin_open: true
environment:
#assigns port to create-react-app
PORT: ${FRONTEND_PORT}
public_frontend:
build:
context: ./public_frontend
dockerfile: Dockerfile
env_file:
- ./demo.env
volumes:
- "./public_frontend:/usr/app"
- "/usr/app/node_modules"
- "/usr/app/.next"