-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose5.yml
45 lines (41 loc) · 930 Bytes
/
docker-compose5.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
version: '1'
services:
#Nginx Service
webserver:
image: ampache_nginx:5
container_name: ampache5_nginx
build: ampache5_nginx
restart: unless-stopped
tty: true
ports:
- "80:80"
networks:
- app-network
#MySQL Service
db:
image: ampache5_db:dev
container_name: ampache5_db
build: ampache_db
restart: unless-stopped
tty: true
volumes:
- db_data:/var/lib/mysql
ports:
- "3306:3306"
networks:
- app-network
environment:
DB: ampache
USER: ampache
PASSWORD: 12test34
volumes:
db_data: {}
#Docker Networks
networks:
app-network:
driver: bridge
# You will need to change this
# Keep in mind docker compose is simplistic and cannot deploy
# in a VPC which has more than 1 subnet per AZ (it doesn't know which is the public subnet)
# https://github.com/docker/compose-cli/issues/1411
x-aws-vpc: vpc-fe68e599