-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (71 loc) · 1.46 KB
/
docker-compose.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
version: '3.9'
services:
#Nginx Config
nginx:
image: celnet1/salesaccount-nginx:latest
restart: always
ports:
- "80:80"
#Backend Config
backend:
image: celnet1/salesaccount-be:latest
container_name: backend
restart: always
environment:
DB_HOST: mysql_db
DB_PORT: 3306
DB_USER: mysql
DB_PASSWORD: mysql
DB_NAME: Account_Pal
# ports:
# - "8000:8000"
depends_on:
- mysql_db
#frontend
frontend:
image: celnet1/salesaccount-fe:latest
container_name: client
# networks:
# - appnet
# # restart: always
# ports: check default.conf in the nginx folder
# - "3000:3000"
# database
# db:
# image: postgres:latest
# container_name: postgres-db
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# ports:
# - 5432:5432
# volumes:
# - db:/var/lib/postgresql/data
mysql_db:
image: mysql:latest
container_name: sql-db
environment:
- MYSQL_DATABASE=Account_Pal
- MYSQL_ROOT_PASSWORD=mysql
ports:
- 3306:3306
volumes:
- db:/var/lib/mysql
# used to have a UI for the database
adminer:
image: adminer
restart: always
depends_on:
- mysql_db
ports:
- 8081:8080
# networks:
# - appnet
# link all docker containers to the same image
# networks:
# appnet:
# driver: bridge
# bind volumes
volumes:
db:
driver: local