-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 1.11 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
version: "3.9"
services:
db:
image: mysql
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- 63306:3306 # Expose port to make db directly accessable
env_file: .env
volumes:
- db:/var/lib/mysql
networks:
- wttt-network
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 63080:80
env_file: .env
networks:
- wttt-network
depends_on:
- db
server:
build:
context: .
dockerfile: Dockerfile
image: wttt-33/server
container_name: wttt-33_server
restart: always
env_file: .env
environment:
- NODE_ENV=development
ports:
- "63033:8033"
volumes:
- .:/home/node/app
networks:
- wttt-network
depends_on:
- db
volumes:
db:
db-admin:
networks:
wttt-network:
driver: bridge