-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
58 lines (56 loc) · 1.94 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
version: "3"
services:
web:
image: uconn/php74-official:latest
environment:
SITE_ENV: local
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
ports:
- "80:80"
- "443:443"
volumes:
# mount files/directories necessary for wordpress
- ./twentytwenty-child:/var/www/html/content/themes/twentytwenty-child
- ./src:/var/www/html/content/themes/twentytwenty-child/a11y-menu-src
- ./dist:/var/www/html/content/themes/twentytwenty-child/a11y-menu-dist
- ./www:/var/www/html
- ./.entrypoint/server-entrypoint:/entrypoint
depends_on:
- mysql
restart: always
mysql:
image: uconn/comm0db:latest
ports:
- "3306:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
# local:
# image: uconn/local:latest
# ports:
# - "3000:3000"
# - "3001:3001"
# restart: always
# volumes:
# # the working directory inside the container is /project.
# # anything you want inside that container (except the entrypoint script) should be mounted to that directory.
# - ./package.json:/project/package.json
# - ./gulpfile.js:/project/gulpfile.js
# - ./dist:/project/dist
# # mount the source files
# - ./src:/project/src
# # this entrypoint file will override the container's default entrypoint command.
# # make sure to run chmod +x on the host's entrypoint file.
# - ./.entrypoint/local-dev-entrypoint.sh:/entrypoint.sh
# # explicitly connect the shared volume so the web server can share it.
# - build:/project/build
# define a volume to be shared between the local and server containers
# changes made in the local dev container will be passed to the matching directory on the server.
# volumes:
# build: