generated from AmpersandTarski/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (44 loc) · 1.04 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
version: '3.7'
volumes:
db-data:
networks:
db:
services:
prototype:
container_name: prototype
build:
context: .
dockerfile: docker/prototype.Dockerfile
args:
- SCRIPT=project.adl # entry script for Ampersand compiler
- DB_HOST=prototype-db # refers to service below
environment:
# - AMP_PROTO_ENV_NAME=default # use configured environments (e.g. default, dev, prod)
volumes:
- ./:/usr/local/project
restart: always
depends_on:
- prototype-db
ports:
- "80:80"
networks:
- db
prototype-db:
container_name: prototype-db
image: docker.pkg.github.com/ampersandtarski/prototype-db/prototype-db
restart: always
volumes:
- db-data:/var/lib/mysql
networks:
- db
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin
depends_on:
- prototype-db
ports:
- "8080:80"
networks:
- db
environment:
- PMA_HOST=prototype-db # https://hub.docker.com/r/phpmyadmin/phpmyadmin/