-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
36 lines (36 loc) · 935 Bytes
/
docker-compose.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
version: '3'
services:
redis:
image: redis:6.2-alpine
command: redis-server --save 20 1 --loglevel warning --requirepass $ASSEMBLEIA_REDIS_PASSWORD
container_name: $ASSEMBLEIA_REDIS_CONTAINERNAME
hostname: $ASSEMBLEIA_REDIS_HOSTNAME
restart: always
ports:
- "6379:6379"
volumes:
- mensageria:/data
networks:
- assembleia-network
app:
image: argkntb/assembleia-app:latest
container_name: assembleia-app
environment:
ASSEMBLEIA_REDIS_PASSWORD: $ASSEMBLEIA_REDIS_PASSWORD
ASSEMBLEIA_REDIS_HOST: $ASSEMBLEIA_REDIS_HOSTNAME
ASSEMBLEIA_MOCK_USER_SERVICE: $ASSEMBLEIA_MOCK_USER_SERVICE
SPRING_PROFILES_ACTIVE: $SPRING_PROFILES_ACTIVE
ports:
- "8080:8080"
networks:
- assembleia-network
links:
- redis
depends_on:
- redis
volumes:
mensageria:
driver: local
networks:
assembleia-network:
driver: bridge