-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (95 loc) · 2.2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
105 lines (95 loc) · 2.2 KB
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
x-python-service: &python-service
build:
dockerfile: Dockerfile.development
context: .
env_file: .env.docker
volumes:
- ./:/home/user/app/
- virtualenv:/opt/venv
stdin_open: true
tty: true
services:
db:
image: "postgres:alpine"
environment:
- POSTGRES_USER=vinta_schedule_api
- POSTGRES_PASSWORD=password
- POSTGRES_DB=vinta_schedule_api
ports:
- "5432:5432"
volumes:
- dbdata:/var/lib/postgresql/18/docker
broker:
image: "rabbitmq:alpine"
ports:
- "5672:5672"
result:
image: "redis:alpine"
ports:
- "6379:6379"
api:
<<: *python-service
ports:
- "8000:8000"
depends_on:
- db
- broker
- result
- mailpit
- floci
worker:
<<: *python-service
command: celery --app=vinta_schedule_api worker --loglevel=info
depends_on:
- db
- broker
- result
mailpit:
image: axllent/mailpit
restart: unless-stopped
volumes:
- ./.mailpit-data:/data
ports:
- "1025:1025"
- "8025:8025"
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
networks:
- default
# The floci image's app process runs as uid 1001, but a fresh floci_data
# volume mounts at /data owned by root:root -> floci can't create /data/s3 or
# persist state, and every S3 op 500s. This one-shot sidecar chowns the volume
# to 1001 before floci starts.
floci-init:
image: busybox
command: chown -R 1001:1001 /data
volumes:
- floci_data:/data
floci:
image: floci/floci:latest
depends_on:
floci-init:
condition: service_completed_successfully
ports:
- '4566:4566'
volumes:
- floci_data:/data
environment:
- FLOCI_PORT=4566
- FLOCI_HOSTNAME=floci
- FLOCI_STORAGE_MODE=persistent
- FLOCI_STORAGE_PERSISTENT_PATH=/data
- FLOCI_DEFAULT_REGION=us-east-1
volumes:
dbdata:
name: vinta_schedule_api_dbdata
external: true
floci_data:
name: vinta_schedule_api_floci_data
external: true
virtualenv:
name: vinta_schedule_api_virtualenv
external: true