-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (70 loc) · 1.86 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
74
75
76
version: "2.3"
services:
node:
build:
context: ./docker/images/node
dockerfile: Dockerfile
expose:
- 3000
volumes:
- $PWD:/home/node
- /etc/localtime:/etc/localtime:ro
user: root
working_dir: /home/node
privileged: true
restart: "always"
network_mode: host
tty: false
# entrypoint: |
# ./scripts/wait-for-it -wait tcp://${PG_HOST:-10.102.0.3}:${PG_PORT:-5432} -wait-retry-interval 5s -timeout 600s
command: "sh -c 'npm install --production && npm start'"
postgres:
image: postgres:11.10
ports:
- ${PG_PUBLISH_PORT:-5432}:5432
volumes:
- ${PG_DIR_DATA:-postgres-storage}:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
- $PWD/storage/database/migrition/:/docker-entrypoint-initdb.d/
networks:
main:
ipv4_address: 10.102.0.3
restart: "always"
docker-proxy:
image: rancher/socat-docker:v0.2.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
privileged: true
networks:
main:
ipv4_address: 10.102.0.4
restart: "always"
build-squid-image:
build:
context: ./docker/images/squid
dockerfile: Dockerfile
image: multi-squid-ipv4-proxy-api:latest
networks:
main:
ipv4_address: 10.102.0.5
restart: "no"
command: /bin/sh -c "sleep 1; exit"
log-capture:
image: bitnami/fluent-bit:1.9.1
volumes:
- $PWD/storage/externalConf/fluent-bit.conf:/etc/fluent-bit.conf
- $PWD/storage/externalConf/fluent-bit-parsers.conf:/etc/fluent-bit-parsers.conf
network_mode: host
command: "-c /etc/fluent-bit.conf"
restart: "always"
volumes:
postgres-storage:
networks:
main:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.102.0.0/28
gateway: 10.102.0.1