-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.old-services.yml
124 lines (102 loc) · 4.1 KB
/
docker-compose.old-services.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
nginx: # TODO: this image runs nginx as root, is this a security issue?
build: dockerfiles # image: nginx
dockerfile: Dockerfile_nginx
ports:
- "8443:8443"
volumes:
- /home/alex/mnt/ryctoic/nginx-dev.conf:/etc/nginx/nginx.conf:ro
- /home/alex/mnt/ryctoic/priv/ssl/server.crt:/etc/nginx/server.crt:ro
- /home/alex/mnt/ryctoic/priv/ssl/server.key:/etc/nginx/server.key:ro
log_opt:
max-size: "200k"
max-file: "20"
backend:
build: dockerfiles
dockerfile: Dockerfile_backend
working_dir: /home/theuser/ryctoic
entrypoint: bin/entrypoint-backend.sh # was entrypoint: /home/theuser/ryctoic/_rel/hello_world/bin/hello_world and command: foreground
volumes:
- .:/home/theuser/ryctoic
- ../ryctoic.secrets:/home/theuser/secrets # see vm's shared dirs
ports:
- "8080:8080"
# expose:
# we'll have to expose some ports if we need to interconnect erlang nodes
# - "4369:4369"
# - "9101:9101"
# - "9102:9102"
# - "9103:9103"
# - "9104:9104"
# - "9105:9105"
log_opt:
max-size: "200k"
max-file: "20"
figwheel:
build: dockerfiles
dockerfile: Dockerfile_figwheel
volumes:
- /home/alex/mnt/ryctoic/:/home/theuser/ryctoic
# cache dependencies of lein figwheel to avoid downloading them on every run, this is gitignored
- /home/alex/mnt/ryctoic/client-web/lein-deps:/home/theuser/.m2/
working_dir: /home/theuser/ryctoic/client-web
command: /usr/local/bin/lein figwheel
# command: /bin/true
# command: while true ; do echo "doing nothing" && sleep 5 ; done
# stdin_open: true
# tty: true
log_opt:
max-size: "200k"
max-file: "20"
# TODO: replace this data-only container with a named volume, at the moment of writing docker-compose doesn't support this
pgdata:
build: dockerfiles
dockerfile: Dockerfile_postgres
volumes:
- /var/lib/postgresql/data
entrypoint: /bin/true
log_opt:
max-size: "200k"
max-file: "20"
# cd /sql && mkdir logs_pgtest && psql --username postgres --echo-all -v ON_ERROR_STOP=1 -f V000a__configuration____run_by_superuser.sql --log-file=logs_pgtest/V000a__configuration____run_by_superuser.sql.log
pgtest:
build: dockerfiles
dockerfile: Dockerfile_postgres
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
- PGDATA=/var/lib/postgresql/data_outside_the_volume_to_start_from_scratch_every_time_we_recreate_the_container
# $ bin/docker-compose.sh stop pgtest && bin/docker-compose.sh rm -f pgtest && bin/docker-compose.sh up -d --no-deps pgtest
volumes:
- /home/alex/mnt/ryctoic/sql:/sql
- /home/alex/mnt/ryctoic/sql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
# we can't share some files here, because at the moment of writing docker doesn't allow to map uids in volumes, so we simply copy these files using copy_files.sh
log_opt:
max-size: "200k"
max-file: "20"
# - /home/alex/mnt/ryctoic/sql/copy_files.sh:/docker-entrypoint-initdb.d/copy_files.sh
# - /home/alex/mnt/ryctoic/sql/V000a__configuration____run_by_superuser.sql:/docker-entrypoint-initdb.d/baseline.sql
cordova_browser_console_logger:
build: dockerfiles
dockerfile: Dockerfile_cordova_browser_console_logger
volumes:
- /home/alex/mnt/ryctoic/bin/cordova_browser_console_logger.py:/home/theuser/cordova_browser_console_logger.py
command: /home/theuser/cordova_browser_console_logger.py
log_opt:
max-size: "200k"
max-file: "20"
gulp:
build: dockerfiles
dockerfile: Dockerfile_gulp
volumes:
- /home/alex/mnt/ryctoic/:/home/theuser/ryctoic
working_dir: /home/theuser/ryctoic/client-web
command: gulp
pg-schema-version:
build: dockerfiles
dockerfile: Dockerfile_pg-schema-version
volumes:
- /home/alex/mnt/ryctoic/sql:/home/theuser/ryctoic/sql
working_dir: /home/theuser/ryctoic/sql
entrypoint: /home/theuser/pg-schema-version.py