-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 939 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 939 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
41
42
43
44
45
46
47
48
49
50
51
# Use this file with docker-compose
# https://docs.docker.com/compose/install/
version: '3.5'
services:
db:
image: postgres:10.9
volumes:
- './docker/volumes/postgres:/var/lib/postgresql/data'
networks:
- app_internal
# redis:
# image: redis:4.0
# ports:
# - '6379:6379'
# volumes:
# - './docker/volumes/redis:/data'
# networks:
# - app_internal
web:
build: .
command: bash -c "rm -rf tmp/* && foreman start -f Procfile.dev"
volumes:
- '.:/webpack-thp'
ports:
- "3000:3000"
depends_on:
- db
# - redis
- mailcatcher
env_file:
- '.env.web'
networks:
- app_internal
- app_external
mailcatcher:
image: djfarrelly/maildev
ports:
- "1080:80"
networks:
- app_internal
- app_external
networks:
app_external:
name: app_external
app_internal:
name: app_internal