-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (79 loc) · 1.72 KB
/
docker-compose.yml
File metadata and controls
85 lines (79 loc) · 1.72 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
version: "3.9"
services:
db:
image: mariadb:latest # Changed from mysql to mariadb
container_name: db
restart: always
environment:
# Renamed variables for MariaDB
MARIADB_ROOT_PASSWORD: password
MARIADB_DATABASE: database
MARIADB_USER: user
MARIADB_PASSWORD: password
volumes:
- db_data:/var/lib/mysql
printer:
image: printer:v1
build:
context: ./printer_ms
dockerfile: printer_dockerfile
container_name: printer
volumes:
- ticket_pdfs:/app/static/tickets
ports:
- "9000:9000"
env_file:
- ./printer_ms/.env
restart: always
# cleanup:
# image: cleanup:v1
# build:
# context: ./backend
# dockerfile: cleanup_dockerfile
# container_name: cleanup
# volumes:
# - ticket_pdfs:/app/static/tickets
# env_file:
# - ./backend/.env
# environment:
# DATABASE_NAME: database
# DATABASE_USER: user
# DATABASE_PASSWORD: password
# DATABASE_HOST: db
# DATABASE_PORT: 3306
# depends_on:
# - db
# restart: always
bus:
image: bus:v1
build:
context: ./backend
dockerfile: bus_dockerfile
container_name: bus
ports:
- "8000:8000"
env_file:
- ./backend/.env
environment:
DATABASE_NAME: database
DATABASE_USER: user
DATABASE_PASSWORD: password
DATABASE_HOST: db
DATABASE_PORT: 3306
depends_on:
- db
restart: always
frontend:
image: frontend:v1
build:
context: ./frontend
dockerfile: frontend_dockerfile
container_name: frontend
ports:
- "3000:3000"
depends_on:
- backend
restart: always
volumes:
db_data:
ticket_pdfs: