-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
68 lines (62 loc) · 1.27 KB
/
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
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
version: '3.3'
services:
postgres:
image: postgres:alpine
container_name: postgres_db
restart: always
ports:
- '6001:5432'
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=db
volumes:
- pgdata:/var/lib/postgresql/data
networks:
example-network:
ipv4_address: 172.16.238.10
adminer:
image: adminer
restart: always
ports:
- 8080:8080
redis:
image: 'bitnami/redis:latest'
container_name: redis_cache
restart: always
ports:
- '6379:6379'
volumes:
- redis_data:/bitnami/redis/data
environment:
- ALLOW_EMPTY_PASSWORD=no
- REDIS_PASSWORD=password123
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
networks:
example-network:
ipv4_address: 172.16.238.11
api:
container_name: api
build: .
ports:
- '8090:8090'
volumes:
- .:/app
depends_on:
- postgres
- redis
networks:
example-network:
ipv4_address: 172.16.238.12
# command: [ "./wait-for-it.sh", "postgres:5432" ]
volumes:
pgdata:
redis_data:
driver: local
networks:
example-network:
name: example-network
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24