-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (83 loc) · 1.94 KB
/
Copy pathdocker-compose.yml
File metadata and controls
91 lines (83 loc) · 1.94 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
x-carbure: &common-settings
env_file: .env
networks: [carbure]
services:
carbure-mariadb:
image: mysql:8.0.39
container_name: carbure_mariadb
<<: *common-settings
environment:
ENV: ${IMAGE_TAG}
volumes:
- carburedb:/var/lib/mysql
ports:
- 127.0.0.1:3306:3306
- 127.0.0.1:33060:33060
carbure-redis:
image: redis:latest
container_name: carbure_redis
<<: *common-settings
volumes:
- carbureredis:/data
carbure-frontend:
image: carbure_frontend:local
container_name: carbure_frontend
<<: *common-settings
environment:
VITE_SENTRY_DSN: ${SENTRY_DSN}
VITE_APP_ENV: ${IMAGE_TAG}
build:
context: ./front
volumes:
- ./front:/app
- /app/node_modules
carbure-test:
image: carbure_test:local
container_name: carbure_test
profiles: [test]
extends:
carbure-django
environment:
TEST: 1
command: "pipenv run test web"
carbure-django:
image: carbure_app:local
container_name: carbure_app
depends_on:
- carbure-mariadb
- carbure-redis
build:
context: .
dockerfile: ./web/Dockerfile
<<: *common-settings
environment:
DATABASE_URL: mysql://root:$MYSQL_ROOT_PASSWORD@carbure-mariadb:3306/$MYSQL_DATABASE
REDIS_URL: redis://carbure-redis:6379
CARBURE_HOME: /app
PYTHONPATH: /app:/app/web
volumes:
- ./web:/app/web
- ./scripts:/app/scripts
- ./front:/app/front
- uploadedfiles:/app/files
carbure-web-proxy:
image: nginx:latest
container_name: carbure_web
depends_on:
- carbure-frontend
- carbure-django
<<: *common-settings
volumes:
- ./gateway:/etc/nginx/conf.d
ports:
- 8090:80
volumes:
carburedb:
name: carbure_carburedb
carbureredis:
name: carbure_carbureredis
uploadedfiles:
name: carbure_uploadedfiles
networks:
carbure:
name: carbure_default