-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (54 loc) · 935 Bytes
/
docker-compose.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
#web:
# build: .
# command: gulp
# ports:
# - "5000:5004"
# - "3000:3000"
# - "3001:3001"
# expose:
# - "5000"
# - "3000"
# - "3001"
# volumes:
# - .:/code
# links:
# - redis
# - db:db
# - dbtest:dbtest
#nginx:
# restart: always
# build: ./docker/nginx/
# ports:
# - "80:80"
# volumes:
# - /www/static
# volumes_from:
# - web
# links:
# - web:web
redis:
image: redis
ports:
- "5005:6379"
db:
restart: always
image: postgres:latest
environment:
POSTGRES_DB: ottomen
POSTGRES_PASSWORD: docker
POSTGRES_USER: docker
volumes:
- ~/Projects/ottomen/migrations/db:/var/lib/postgresql
ports:
- "5002:5432"
dbtest:
restart: always
image: postgres:latest
environment:
POSTGRES_DB: ottomen
POSTGRES_PASSWORD: docker
POSTGRES_USER: docker
volumes:
- ~/Projects/ottomen/migrations/db_test:/var/lib/postgresql
ports:
- "5003:5432"