-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 996 Bytes
/
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
version: '3'
services:
database:
build: "./database"
restart: always
volumes:
- $(pwd)/script:/docker-entrypoint-initdb.d/
container_name: db1
image: dbimg
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "123456"
LANG: "C.UTF-8"
TZ: "Asia/Bangkok"
character-set-server: "utf8mb4"
collation-server: "utf8mb4_unicode_ci"
backend:
build: "./backend"
restart: always
ports:
- "8080:8080"
container_name: BE
image: beimg
depends_on:
- database
frontend:
build: ./frontend
restart: always
ports:
- '3000:80'
container_name: FE
image: feimg
reverseproxy:
image: nginx
restart: always
container_name: proxy
volumes:
- ~reverse_proxy/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- database
- backend
- frontend
ports:
- "80:80"
networks:
default:
external:
name: project221