-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.dev.yaml
61 lines (60 loc) · 1.44 KB
/
docker-compose.dev.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
version: '3'
services:
remix-watch:
container_name: remix-watch
build:
context: ./web
dockerfile: Dockerfile
target: watch-dev
volumes:
- ./web/app:/app/app
- ./web/public:/app/public
- ./web/server:/app/server
- ./web/build:/app/build
- ./web/styles:/app/styles
tty: true
remix-server:
container_name: remix-server
build:
context: ./web
dockerfile: Dockerfile
target: dev-node-server
environment:
- NODE_ENV=development
volumes:
- ./web/server/index.js:/app/index.js
- ./web/build:/app/build
- ./web/node_modules:/app/node_modules
ports:
- "8081:8081"
depends_on:
- remix-watch
remix-public:
container_name: remix-public
image: nginx:latest
restart: always
environment:
TZ: Asia/Tokyo
volumes:
- ./docker_env/remix-public/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker_env/remix-public/logs:/var/log/nginx
- ./web/public:/etc/nginx/public
ports:
- "8082:80"
depends_on:
- remix-watch
nginx-proxy:
container_name: nginx-proxy
image: nginx:latest
restart: always
environment:
TZ: Asia/Tokyo
volumes:
- ./docker_env/nginx-proxy/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker_env/nginx-proxy/logs:/var/log/nginx
ports:
- "8080:80"
- "8002:8002"
depends_on:
- remix-server
- remix-public