-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (58 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
58 lines (58 loc) · 1.13 KB
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
version: '3.8'
services:
webserver:
image: nginx
container_name: webserver
ports:
- 80:80
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
- production-network
depends_on:
- 'app'
app:
build:
dockerfile: ./docker/gobarber-back.Dockerfile
context: .
container_name: backend
image: gobarber/backend
volumes:
- ./:/app
ports:
- 3333:3333
depends_on:
- 'barberdb'
- 'barbermongo'
- 'barberredis'
command: typeorm migration:run
networks:
- production-network
barberdb:
image: postgres
container_name: postgresql
environment:
POSTGRES_PASSWORD: docker
POSTGRES_USER: docker
POSTGRES_DB: gobarber
networks:
- production-network
ports:
- 5432:5432
barbermongo:
image: mongo
container_name: mongodb
ports:
- 27017:27017
networks:
- production-network
barberredis:
image: redis
container_name: redis
ports:
- 6379:6379
networks:
- production-network
networks:
production-network:
driver: bridge