-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (64 loc) · 1.31 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
version: '3.8'
services:
api.pharmacy-nginx:
image: nginx:alpine3.17
restart: always
depends_on:
- pharmacy-db
- api.pharmacy
container_name: api.pharmacy-nginx
ports:
- 81:80
- 444:443
volumes:
- ./api/:/var/www
- ./docker/:/etc/nginx/conf.d
networks:
- pharmacy-networks
pharmacy-db:
image: mysql:8.0.33
restart: unless-stopped
container_name: pharmacy-db
env_file:
- ./api/.env
environment:
- MYSQL_USER=pharmacydb
- MYSQL_PASSWORD=pharmacydb
- MYSQL_DATABASE=pharmacydb
- MYSQL_ROOT_PASSWORD=pharmacydb
ports:
- 3306:3306
volumes:
- pharmacy-db:/var/lib/mysql
networks:
- pharmacy-networks
api.pharmacy:
build:
context: ./api
dockerfile: lv.Dockerfile
container_name: api.pharmacy
working_dir: /var/www
ports:
- 9000:9000
networks:
- pharmacy-networks
volumes:
- ./api/:/var/www
vue.pharmacy:
build:
context: ./vue-app
dockerfile: vue.Dockerfile
container_name: vue.pharmacy
working_dir: /app
restart: always
networks:
- pharmacy-networks
ports:
- 8080:8080
volumes:
- ./vue-app/:/app
volumes:
pharmacy-db:
networks:
pharmacy-networks:
driver: bridge