This repository has been archived by the owner on Jun 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (59 loc) · 1.95 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
version: '3.4'
services:
apache:
build: ./apache
container_name: apache
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
# - "./apache/test_certs/local.ncsu.edu-selfsigned.crt:/etc/ssl/certs/sdc.csc.ncsu.edu.crt"
# - "./apache/test_certs/local.ncsu.edu-selfsigned.key:/etc/ssl/private/sdc.csc.ncsu.edu.key"
- "./apache/test_certs/local.ncsu.edu-selfsigned.crt:/etc/ssl/certs/sdc.csc.ncsu.edu.crt"
- "./apache/test_certs/local.ncsu.edu-selfsigned.key:/etc/ssl/private/sdc.csc.ncsu.edu.key"
- "./apache/conf/default.conf:/etc/apache2/sites-enabled/000-default.conf"
- "./apache/conf/ssl.conf:/etc/apache2/sites-enabled/ssl.conf"
database:
container_name: database
image: mysql
env_file:
- .env
ports:
- "3306:3306"
#This specifies that the container should use a persistent volume at /mysql-data
#Otherwise, the container will create a new volume on each run and lose data
volumes:
- ./mysql-data:/var/lib/mysql
scraperapi:
container_name: scraperapi
env_file:
- .env
#Builds the image from the Dockerfile in the current directory
build: ./scraperapi
volumes:
- './scraperapi:/app'
backend:
container_name: backend
depends_on:
- database
- scraperapi
env_file:
- .env
#Builds the image from the Dockerfile in the current directory
build: ./backend
#Shares the container volume with the host so code changes are immediately available
volumes:
- './backend:/app'
frontend:
container_name: frontend
#Builds the image from the Dockerfile in the current directory
build: ./frontend
environment:
- "FAST_REFRESH=false"
- "CHOKIDAR_USEPOLLING=true"
- "WDS_SOCKET_PORT=80"
#Shares the container volume with the host so code changes are immediately available
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public