-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·73 lines (67 loc) · 1.54 KB
/
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
services:
gobarber-api:
build: .
image: thehiddenbuddy/gobarber-api:latest
container_name: gobarber-api
volumes:
- gobarber-api-data:/home/node/api/tmp
environment:
- NODE_ENV=development
- DB_HOST=gobarber-postgres
- MONGO_URL=mongodb://gobarber-mongo:27017/gobarber
restart: always
ports:
- '3333:3333'
depends_on:
- gobarber-postgres
- gobarber-mongo
- gobarber-redis
networks:
- gobarber-network
gobarber-postgres:
image: postgres
container_name: gobarber-postgres
restart: always
environment:
- DB_HOST=gobarber-postgres
- POSTGRES_USER:${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
volumes:
- gobarber-postgres-data:/var/lib/postgresql/data
ports:
- '${DB_PORT}:5432'
networks:
- gobarber-network
gobarber-mongo:
image: mongo
container_name: gobarber-mongo
restart: always
volumes:
- gobarber-mongo-data:/data/db
ports:
- '27017:27017'
networks:
- gobarber-network
gobarber-redis:
image: bitnami/redis:latest
container_name: gobarber-redis
restart: always
environment:
- ALLOW_EMPTY_PASSWORD=no
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
- gobarber-redis-data:/data
ports:
- '6379:6379'
networks:
- gobarber-network
volumes:
gobarber-postgres-data:
gobarber-mongo-data:
gobarber-redis-data:
gobarber-api-data:
networks:
gobarber-network:
driver: bridge