forked from translate/pootle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
102 lines (91 loc) · 2.29 KB
/
docker-compose.dev.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
# docker-compose for Pootle development.
#
# Note: Requires docker-compose 1.10+.
version: "2.4"
services:
## Dev services
base:
build:
context: ./docker
base-dev:
image: translate/pootle:base-dev
extends: base
build:
args:
- BUILD_IMAGE=dev
environment:
- LOCAL_USER_ID=${LOCAL_USER_ID:-''}
ports:
- "8000:8000"
volumes:
- .:/app/src/pootle
# Dev app (postgres)
dev-postgres:
image: translate/pootle:dev-postgres
extends: base-dev
build:
args:
- APP_DB_ENV=postgres
- BUILD_INSTALL_PKGS=libpq-dev
- BUILD_INSTALL_EGGS=psycopg2-binary
- BUILD_INSTALL_SETTINGS=./settings.postgres.conf
- BASE_INSTALL_PRE=mkdir -p /usr/share/man/man1 /usr/share/man/man7
- BASE_INSTALL_PKGS=postgresql-client
depends_on:
- postgres
- redis
- elasticsearch
# Dev app (mariadb)
dev-mariadb:
image: translate/pootle:dev-mariadb
extends: base-dev
build:
args:
- APP_DB_ENV=mariadb
- BUILD_INSTALL_PKGS=libmariadbclient-dev-compat
- BUILD_INSTALL_EGGS=MySQL-python
- BUILD_INSTALL_SETTINGS=./settings.mariadb.conf
- BASE_INSTALL_PKGS=libmariadbclient18 mariadb-client
depends_on:
- mariadb
- redis
- elasticsearch
# Dev app (sqlite)
dev-sqlite:
image: translate/pootle:dev-sqlite
extends: base-dev
build:
args:
- APP_DB_ENV=sqlite
- BASE_INSTALL_PKGS=sqlite3
depends_on:
- redis
- elasticsearch
elasticsearch:
extends:
file: docker-compose.yml
service: elasticsearch
postgres:
extends:
file: docker-compose.yml
service: postgres
volumes:
- postgres-dev-data:/var/lib/postgresql/data
redis:
extends:
file: docker-compose.yml
service: redis
volumes:
- redis-dev-data:/data
mariadb:
image: mariadb
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0
restart: always
environment:
- MYSQL_ROOT_PASSWORD=CHANGEME
- MYSQL_DATABASE=pootledb
- MYSQL_USER=pootle
- MYSQL_PASSWORD=CHANGEME
volumes:
postgres-dev-data:
redis-dev-data: