-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.3 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
version: "3.3"
services:
db:
container_name: ff-db
image: mysql:8.0.25
expose:
- "${DB_PORT}"
volumes:
- "ff-volume:/var/lib/mysql"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
- ff-network
- ff-db-view
restart: unless-stopped
db-view:
container_name: ff-db-admin
image: phpmyadmin
restart: unless-stopped
ports:
- 8081:80
environment:
- PMA_ARBITRARY=1
networks:
- ff-db-view
ff:
container_name: ff-api
build:
context: .
dockerfile: Dockerfile-local
working_dir: /ff-volume/app
ports:
- "${PORT_EXPOSED}:${PORT}"
volumes:
- "./:/ff-volume/app"
- "/ff-volume/app/node_modules"
depends_on:
- db
networks:
- ff-network
restart: unless-stopped
# ffe2e:
# container_name: ff-api-e2e
# build:
# context: .
# dockerfile: Dockerfile-local
# working_dir: /ff-e2e/app
# expose:
# - 3000
# volumes:
# - "./:/ff-e2e/app"
# command: npm run test:e2e
# depends_on:
# - db
# networks:
# - ff-network
# restart: "no"
networks:
ff-network:
driver: bridge
ff-db-view:
driver: bridge
volumes:
ff-volume:
driver: "local"