-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
79 lines (74 loc) · 2.06 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
# =============================================================================
# Deployment instructions for the developer's Docker container
# =============================================================================
# This file is part of the FSFE Form Server.
#
# SPDX-FileCopyrightText: 2020 FSFE e.V. <[email protected]>
# SPDX-FileCopyrightText: 2019 Florian Vuillemot <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
version: "3"
services:
forms-redis:
image: bitnami/redis:6.2
container_name: forms-redis
expose:
- "6379"
environment:
ALLOW_EMPTY_PASSWORD: "yes"
restart: always
# This is the container for local testing
forms-quality:
image: forms-quality
container_name: forms-quality
build:
dockerfile: Dockerfile-quality
target: development
args:
user_id: "${USER_ID}"
group_id: "${GROUP_ID}"
volumes:
- ".:/home/fsfe/src"
command: sleep infinity
forms:
image: forms
container_name: forms
build:
target: development
context: .
depends_on:
- forms-redis
ports:
- "8080:8080"
volumes:
- ".:/home/fsfe/src"
- "./store:/store:rw"
restart: always
environment:
FLASK_APP: "/home/fsfe/src/fsfe_forms"
FLASK_DEBUG: "True"
FLASK_RUN_HOST: "0.0.0.0"
FLASK_RUN_PORT: 8080
LOG_EMAIL_FROM: "[email protected]"
LOG_EMAIL_TO: "[email protected]"
MAIL_PORT: "1025"
MAIL_SERVER: "forms-maildev"
REDIS_HOST: "forms-redis"
REDIS_PORT: "6379"
VALIDATE_EMAIL_FROM: "[email protected]"
FSFE_CD_URL: "http://forms-fake-fsfe-cd-front:8888/"
command: /bin/sh -c "flask run"
forms-maildev:
image: maildev/maildev:2.1.0
container_name: forms-maildev
ports:
- "1025:1025"
- "1080:1080"
forms-fake-fsfe-cd-front:
image: forms-fake-fsfe-cd-front
build:
context: ./forms-fake-fsfe-cd-front
dockerfile: Dockerfile-fake-fsfe-cd-front
container_name: forms-fake-fsfe-cd-front
ports:
- "8888:8888"