-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 976 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
version: '3.3'
services:
db:
image: postgres:11.2
restart: always
container_name: tbk_db_1
hostname: db
volumes:
- /var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD
deploy:
resources:
limits:
memory: 4g
networks:
- tbknet
apache:
image: thebigknow/apache
restart: always
container_name: tbk_web_1
hostname: apache01
environment:
TBK_DOMAIN: dev.thebigknow.com
RAILS_APP_HOST: "${DOCKER_INTERNAL:-host.docker.internal}"
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
networks:
- tbknet
redis:
image: redis
restart: always
container_name: tbk_redis_1
hostname: redis01
ports:
- "6379:6379"
networks:
- tbknet
networks:
tbknet:
driver: bridge